Skip to content

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

[pre-commit.ci] pre-commit autoupdate

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

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/pydeps2env@v1.3.0
with:
files: pyproject.toml
channels: conda-forge
extras: test all
build_system: include
- name: Setup Conda Environment
uses: mamba-org/setup-micromamba@v2.0.2
with:
environment-file: ./environment.yml
environment-name: pytcs
cache-environment: true
init-shell: >-
bash
powershell
# persist on the same day.
cache-environment-key: environment-${{ steps.date.outputs.date }}
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