-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 995 Bytes
/
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
name: "CI"
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
tests:
strategy:
matrix:
python-version:
- 310
- 311
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
system-features = benchmark kvm
- name: Run tests on Python${{ matrix.python-version }}
run: |
nix-shell --argstr pyVersion ${{ matrix.python-version }} --run \
"pip install -e . && pip install -r requirements/test.txt && pip install -r requirements/extras/third_party.txt && pytest --cov=typeit"
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
nix-shell --argstr pyVersion ${{ matrix.python-version }} --arg isDevEnv false --run "coveralls --service=github"