Skip to content

Tests

Tests #68

Workflow file for this run

name: Tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
schedule:
- cron: '0 2 * * *' # Runs at 2:00 AM UTC every day
jobs:
unit-tests:
name: pytest (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: continuous_integration/environment-ci.yml
environment-name: cmac_test_env
create-args: >-
python=${{ matrix.python-version }}
cache-environment: true
- name: Install cmac
run: pip install --no-deps -e .
- name: Run unit tests
run: pytest -v cmac/tests/