Add Forgejo project validation #1

Open
Fryuni wants to merge 2 commits from forgejo-actions into main
Owner

Summary

Add Forgejo Actions validation for the project and a reproducible formatting toolchain exposed through the Nix flake.

Changes

  • add independent Forgejo jobs for flake checks, Python unit tests, and formatting validation
  • expose nix fmt through treefmt with Ruff, nixfmt, Taplo, and Prettier
  • add flake checks for formatting and the complete unittest suite
  • format existing Python, Nix, TOML, Markdown, and YAML sources consistently
  • make launcher and test behavior deterministic under the Nix build sandbox

Testing

  • nix flake check --print-build-logs
  • nix develop --command python3 -m unittest
  • nix fmt -- --ci
  • nix run nixpkgs#actionlint -- -shellcheck= -pyflakes= -ignore 'label "nix" is unknown' .forgejo/workflows/validate.yml
## Summary Add Forgejo Actions validation for the project and a reproducible formatting toolchain exposed through the Nix flake. ## Changes - add independent Forgejo jobs for flake checks, Python unit tests, and formatting validation - expose `nix fmt` through treefmt with Ruff, nixfmt, Taplo, and Prettier - add flake checks for formatting and the complete unittest suite - format existing Python, Nix, TOML, Markdown, and YAML sources consistently - make launcher and test behavior deterministic under the Nix build sandbox ## Testing - `nix flake check --print-build-logs` - `nix develop --command python3 -m unittest` - `nix fmt -- --ci` - `nix run nixpkgs#actionlint -- -shellcheck= -pyflakes= -ignore 'label "nix" is unknown' .forgejo/workflows/validate.yml`
Add Forgejo validation workflow
Some checks failed
Validate / Flake check (push) Successful in 28s
Validate / Formatting (push) Successful in 29s
Validate / Formatting (pull_request) Successful in 4s
Validate / Flake check (pull_request) Successful in 7s
Validate / Python unit tests (pull_request) Has been cancelled
Validate / Python unit tests (push) Has been cancelled
81250366e6
Restrict Forgejo workflow triggers
Some checks failed
Validate / Formatting (pull_request) Successful in 4s
Validate / Flake check (pull_request) Successful in 12s
Validate / Python unit tests (pull_request) Has been cancelled
f76380e2da
Some checks failed
Validate / Formatting (pull_request) Successful in 4s
Validate / Flake check (pull_request) Successful in 12s
Validate / Python unit tests (pull_request) Has been cancelled
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin forgejo-actions:forgejo-actions
git switch forgejo-actions

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff forgejo-actions
git switch forgejo-actions
git rebase main
git switch main
git merge --ff-only forgejo-actions
git switch forgejo-actions
git rebase main
git switch main
git merge --no-ff forgejo-actions
git switch main
git merge --squash forgejo-actions
git switch main
git merge --ff-only forgejo-actions
git switch main
git merge forgejo-actions
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Fryuni/herdr-treehouse!1
No description provided.