Fixes #173
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |