Update github actions status badge in README #16
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: Compatibility Tests | |
on: [push, pull_request] | |
jobs: | |
compat: | |
name: Compatibility Tests | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }} | |
if: ${{ github.ref != 'refs/heads/misc' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
mamba-version: "*" | |
miniforge-version: "latest" | |
channels: conda-forge,defaults | |
channel-priority: true | |
activate-environment: anaconda-client-env | |
- shell: bash -el {0} | |
name: Install dependencies | |
run: | | |
mamba install --file requirements.txt --file requirements-dev.txt | |
python -m pip install -e . | |
- shell: bash -el {0} | |
name: Run pip check | |
run: | | |
pip check || true # Allow pip check to fail without failing the job | |
- shell: bash -el {0} | |
name: Test with pytest | |
run: | | |
pytest |