Update dependency coverage to v7 #687
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
| name: pull_request | |
| on: [pull_request] | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/giganticode/bohr-cml-base:latest | |
| env: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: webfactory/ssh-agent@v0.5.4 | |
| with: | |
| ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| - name: install-dependencies | |
| run: | | |
| /root/.poetry/bin/poetry env use /root/.pyenv/versions/3.8.0/bin/python | |
| /root/.poetry/bin/poetry env info | |
| /root/.poetry/bin/poetry run pip install Cython==0.29.23 | |
| export SKLEARN_NO_OPENMP=1 && /root/.poetry/bin/poetry install | |
| /root/.poetry/bin/poetry run bohr -h | |
| - name: unit-tests | |
| run: | | |
| /root/.poetry/bin/poetry run pytest --doctest-modules --ignore=test-b2b | |
| - name: reproduce-bugginess | |
| run: | | |
| cd test-b2b/labeling | |
| /root/.poetry/bin/poetry run bohr repro -f --only-cached-datasets # since this container will have no access to artifact-explorer running on ironspeed | |
| - name: report-metrics-bugginess | |
| run: | | |
| cd test-b2b/labeling | |
| /root/.poetry/bin/poetry run dvc metrics diff master | |
| [ -z "$(/root/.poetry/bin/poetry run dvc metrics diff master)" ] | |
| - name: cli-commands | |
| run: | | |
| echo "TODO: consider adding testing some cli commands here ?" |