Skip to content

Pytest for Ubuntu / macOS latest #854

Pytest for Ubuntu / macOS latest

Pytest for Ubuntu / macOS latest #854

Workflow file for this run

name: Pytest for Ubuntu / macOS latest
on:
push:
schedule:
- cron: "0 2 * * 1" # The task runs at 2 a.m. every Monday.
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 10
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
activate-environment: test-env
channels: bioconda, conda-forge, defaults, anaconda
- name: Setup conda environment
run: |
conda create -y -n env-dajin2 python=${{ matrix.python-version }} pip pytest
- name: Install weasyprint on macos-latest🍎
if: runner.os == 'macOS'
run: |
conda install -n env-dajin2 weasyprint
- name: Execute tests
env:
PYTHONPATH: src
run: |
conda activate env-dajin2
# Use pip because conda does not support pyproject.toml.
pip install -e .
pytest tests/ -p no:warnings -vv