Merge pull request #118 from a3li/dependabot/github_actions/Determina… #383
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
name: CI | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
env: | |
CI_PROJECT_PATH: ${{ github.repository }} | |
jobs: | |
lint: | |
name: Code Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v8 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: atciss | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Run pylint | |
run: 'nix run .#pylint' | |
- name: Format code | |
run: 'nix run .#format' | |
- name: Run ruff | |
run: 'nix run .#ruff' | |
flake-check: | |
name: nix flake check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check Nix flake inputs | |
uses: DeterminateSystems/flake-checker-action@v5 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v8 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: atciss | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Run flake check | |
run: nix flake check --no-update-lock-file |