-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test setup for run ruff on remote node
- Loading branch information
Alexey Chursinau
committed
Feb 21, 2024
1 parent
c49d4bd
commit 57bf4ad
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters