Skip to content

CI

CI #2

Workflow file for this run

name: CI
on:
pull_request:
branches: [ master ]
workflow_dispatch: # allows manual execution
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["macos-latest"]
python-version: ["3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of the git history
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: env/environment-${{ matrix.python-version }}.yml
miniforge-version: latest
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Display Conda environment
run: conda info
- name: Test with pytest
run: |
pip install pytest
pytest -s