tests #1968
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: tests | |
on: | |
push: | |
schedule: | |
- cron: '0 3 * * *' | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} {0} | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- "macOS-12" | |
- "ubuntu-latest" | |
python-version: | |
- "3.10" | |
- "3.11" | |
pymbar-version: | |
- "pymbar3" | |
- "pymbar4" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup conda environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: devtools/conda-envs/test-${{ matrix.pymbar-version }}_env.yaml | |
create-args: >- | |
python=${{ matrix.python-version }} | |
- name: Install package | |
run: python -m pip install --no-deps . | |
- name: Run tests | |
run: pytest -v --cov=physical_validation --cov-report=xml physical_validation/tests/ | |
- name: Code coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml |