Skip to content

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

[pre-commit.ci] pre-commit autoupdate

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

Workflow file for this run

name: pytest
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
# execute commands with conda aware shell by default:
defaults:
run:
shell: bash -l {0}
jobs:
main:
name: pytest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
py: ['3.9', '3.10', '3.11', '3.12']
pandas: [2.*]
include:
- os: ubuntu-latest
py: '3.10'
pandas: '1.4'
- os: ubuntu-latest
py: '3.10'
pandas: 1.*
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0' # Fetch all history for all tags and branches
- uses: CagtayFabry/[email protected]
with:
files: pyproject.toml
channels: conda-forge
extras: test all
build_system: include
- name: Setup Conda Environment
uses: mamba-org/[email protected]
with:
environment-file: ./environment.yml
environment-name: pytcs
cache-environment: true
create-args: >-
python=${{ matrix.py }}
pandas=${{ matrix.pandas }}
- name: activate env
run: micromamba activate pytcs
- name: pip installs
run: |
python -m pip install -e .
- name: run pytest
run: |
pytest