Skip to content

Commit

Permalink
Test setup for run ruff on remote node
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Chursinau committed Feb 21, 2024
1 parent c49d4bd commit 57bf4ad
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "test"
on:
push:
branches:
- "issue/lint-python-1"
pull_request:

jobs:
check-1:
runs-on: "ubuntu-latest-m"
if: github.event_name != 'push'
concurrency:
cancel-in-progress: true
group: "${{ github.event_name }}-${{ github.ref_name }}-${{ github.ref_type }}--${{ github.ref }}-check"
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v12
with:
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
name: composable
skipPush: false
- run: export NIXPKGS_ALLOW_UNFREE=1 && nix run .#ci --print-build-logs --verbose

publish-1:
if: github.event_name == 'push'
runs-on: "ubuntu-latest-m"
concurrency:
cancel-in-progress: true
group: "main"
permissions:
id-token: "write"
contents: "read"
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v12
with:
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
name: composable
skipPush: false
- run: export NIXPKGS_ALLOW_UNFREE=1 && nix run .#ci
- uses: "DeterminateSystems/flakehub-push@main"
with:
visibility: "public"
rolling: true
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
(
cd ./mantis
nix develop --impure --command poetry run pytest
nix develop --impure --command poetry run ruff check . --exit-non-zero-on-fix --fix-only --no-unsafe-fixes
nix develop --impure --command poetry run ruff check . --exit-non-zero-on-fix --fix-only --no-unsafe-fixes --verbose
nix develop --impure --command poetry check --lock
)
nix flake show --all-systems --json --no-write-lock-file
Expand Down

0 comments on commit 57bf4ad

Please sign in to comment.