Skip to content

[pre-commit.ci] pre-commit autoupdate #136

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #136

Workflow file for this run

name: Python tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
defaults:
run:
# Needed for setup-miniconda
shell: bash -el {0}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
steps:
- uses: actions/checkout@v4
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: conda-env.yml
channels: conda-forge
- name: Install pytest
run: |
conda install pytest --yes
- name: Run tests
run: |
python -m pytest