Fix version numer #1006
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: Python package | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
# See https://stackoverflow.com/questions/72703363 | |
defaults: | |
run: | |
shell: bash -l {0} | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Conda environment from environment.yml | |
uses: mamba-org/provision-with-micromamba@main | |
with: | |
environment-file: environments/minimal.yml | |
environment-name: anaconda-client-env | |
cache-downloads: true | |
cache-env: true | |
- name: Pip install package | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[testing] | |
pip install wandb | |
- name: Test with pytest | |
run: | | |
pytest | |
- name: Explicitly convert coverage to xml | |
run: coverage xml | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v3.1.4 |