Skip to content

Commit 12f994d

Browse files
committed
ci: add GitHub Actions workflow
1 parent 7755f61 commit 12f994d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
tests:
11+
name: Tests on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install make on Windows
19+
if: runner.os == 'Windows'
20+
run: choco install make -y
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.x'
24+
- name: Run tests
25+
shell: bash
26+
run: make test
27+
28+
nix-tests:
29+
name: NixOS tests
30+
runs-on: ubuntu-latest
31+
container:
32+
image: nixos/nix:latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Run tests in Nix shell
36+
run: nix develop --command python -m unittest discover -v

0 commit comments

Comments
 (0)