-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 985 Bytes
/
main.yaml
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
on: [push, pull_request]
name: test
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: poetry-install-cache
with:
path: |
.tox/
build/
~/.cache
key: venv9-${{ hashFiles('poetry.lock') }}
restore-keys: venv9-
- run: nix develop --command poetry install
if: steps.poetry-install-cache.output.cache-hit != 'true'
- name: Get environment info
run: |
nix develop --command poetry config --list
nix develop --command poetry env info
nix develop --command python -c 'import sys; print("\n".join(sys.path))'
ls -al
- run: nix develop --command ./script.py test
- run: nix develop --command coverage xml
- uses: codecov/codecov-action@v2