Docs refresh #1580
Workflow file for this run
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: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Run tests in conda environment | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: conda-lock.yml | |
environment-name: ci | |
cache-environment: true | |
init-shell: bash | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
pip3 install -e .[dev] build | |
- name: Test with pytest | |
run: pytest | |
shell: bash -l {0} | |
- name: Build | |
run: python -m build | |
shell: bash -l {0} |