-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (46 loc) · 1.27 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
45
46
---
name: CI
on: [ workflow_dispatch, push, pull_request ]
jobs:
omnilint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: docker://lpenz/omnilint:0.5.1
python:
uses: lpenz/ghworkflow-python/.github/workflows/python.yml@v0.7.0
with:
docs: false
coveralls: true
publish_pypi: true
publish_github_release: true
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix build
- run: nix flake check
publish-cachix:
needs: [ omnilint, python, nix ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- id: version
uses: docker://lpenz/ghaction-version-gen:0.13.5
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
skipPush: ${{ steps.version.outputs.version_commit == '' }}
name: lpenz
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build
- run: nix flake check