Skip to content

CI

CI #5

Workflow file for this run

name: CI
on:
pull_request:
branches: [ master ]
workflow_dispatch: # allows manual execution
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
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:
activate-environment: sedkit-${{ matrix.python-version }}
environment-file: env/environment-${{ matrix.python-version }}.yml
python-version: ${{ matrix.python-version }}
miniforge-version: latest
auto-activate-base: false
- name: Display Conda environment
run: |
conda info
conda env list
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Test with pytest
run: |
pip install pytest
pytest -s