Clarify upload expectations for BM 1 to 4 #609
This file contains 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
--- | |
name: Test PFHub Package | |
on: [push, pull_request] | |
jobs: | |
pfhub-nix-test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./_data/python-pfhub | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/[email protected] | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
name: pfhub | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
extraPullNames: nix-community | |
- run: echo "UID=${UID}" >> $GITHUB_ENV | |
- uses: actions/cache/restore@v3 | |
with: | |
path: /run/user/${{ env.UID }}/http_cache.sqlite | |
key: ${{ runner.os}}-http_cache.sqlite | |
- run: nix-shell --pure --command "py.test --nbval-lax --cov-fail-under=100" | |
- run: nix-shell --pure --command "black --check setup.py pfhub" | |
- run: nix-shell --pure --command "pylint setup.py pfhub" | |
- run: nix-shell --pure --command "flake8 setup.py pfhub" | |
- run: nix-shell --pure --command "cd ../../results; make notebooks" | |
- run: nix-shell --pure --command "py.test --nbval-lax ../../results/benchmark*.ipynb" | |
- uses: actions/cache/save@v3 | |
if: always() | |
with: | |
path: /run/user/${{ env.UID }}/http_cache.sqlite | |
key: ${{ runner.os}}-http_cache.sqlite |