MAINT: move KnownReparameterisation and ReparameterisationDict #1275
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: Unit tests | |
on: | |
push: | |
branches: [ main, release* ] | |
pull_request: | |
branches: [ main, release* ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
unittests: | |
name: Unit tests - Python ${{ matrix.python-version }} (${{ matrix.os }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macOS, Ubuntu, Windows] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure environment with Python ${{ matrix.python-version}} | |
if: runner.os != 'Windows' | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.5.8-0' | |
environment-file: ci_environment.yaml | |
create-args: >- | |
python=${{ matrix.python-version }} | |
lalsuite | |
init-shell: bash | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: Configure environment with Python ${{ matrix.python-version}} (Windows) | |
if: runner.os == 'Windows' | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.5.8-0' | |
environment-file: ci_environment.yaml | |
create-args: >- | |
python=${{ matrix.python-version }} | |
init-shell: bash | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: Install nessai | |
run: | | |
pip install . --no-deps | |
shell: bash -el {0} | |
- name: Set MPL backend on Windows | |
if: runner.os == 'Windows' | |
run: | | |
echo "MPLBACKEND=agg" >> $env:GITHUB_ENV | |
- name: Print environment variables | |
run: | | |
env | |
- name: Test with pytest | |
run: | | |
python -m pytest --cov-report=xml --without-integration --without-slow-integration | |
shell: bash -el {0} | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unittests |