-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (41 loc) · 1.11 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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@v7
- uses: cachix/cachix-action@v12
with:
name: atciss
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run pylint
run: 'nix run .#pylint'
- name: Run black
run: 'nix run .#black'
- 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@v7
- 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