Skip to content

worstsurge

worstsurge #809

name: Python Package CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- name: Checkout Repository
uses: actions/checkout@v5
- name: Cache Conda environment
uses: actions/cache@v5
with:
path: ${{ env.CONDA }}/envs
key: ${{ runner.os }}-conda-${{ matrix.python-version }}-v2-${{ hashFiles('env.yml', 'setup.py') }}
restore-keys: |
${{ runner.os }}-conda-${{ matrix.python-version }}-v2-
- name: Setup Conda Environment with Mamba 🐍
uses: conda-incubator/setup-miniconda@v4
with:
python-version: ${{ matrix.python-version }}
environment-file: env.yml
auto-update-conda: true
use-mamba: true # Use the fast Mamba solver
- name: Run Tests with Pytest
# Use a conda-aware shell to run in the activated environment
shell: bash -l {0}
run: |
pytest -W ignore::DeprecationWarning