use pixi for docs generation and GHA #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
workflow_call: | |
# cancel workflow if newer commits | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test Pycashier | |
runs-on: "ubuntu-latest" | |
strategy: | |
fail-fast: false | |
matrix: | |
environment: | |
- "test38" | |
- "test39" | |
- "test310" | |
# https://bioconda.github.io/faqs.html#python | |
# TLDR: these aren't supported as of Jan 2024 | |
# - "test311" | |
# - "test312" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/setup-pixi@v0.8.1 | |
with: | |
pixi-version: v0.28.2 | |
cache: true | |
manifest-path: pyproject.toml | |
environments: ${{ matrix.environment }} | |
- name: Run tests | |
run: pixi run -e ${{ matrix.environment }} pytest |