Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3 #1542
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: CI | |
on: [push] | |
jobs: | |
pre-commit-checks: | |
name: Linux - pre-commit checks | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Set up pixi | |
uses: prefix-dev/[email protected] | |
with: | |
environments: lint default | |
- name: pre-commit | |
run: pixi run -e lint pre-commit-run --color=always --show-diff-on-failure | |
unit-tests: | |
name: Tests | |
runs-on: ${{ matrix.os }} | |
env: | |
CI: True | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- { os: ubuntu-latest, environment: 'py310' } | |
- { os: ubuntu-latest, environment: 'py311' } | |
- { os: ubuntu-latest, environment: 'py312' } | |
- { os: windows-latest, environment: 'py312' } | |
- { os: macos-latest, environment: 'py312' } | |
- { os: ubuntu-latest, environment: 'oldies' } | |
- { os: ubuntu-latest, environment: 'nightly' } | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Set up pixi | |
uses: prefix-dev/setup-pixi@992a3081e2f87829e0fff9fb29f4fe6a5d1e80a2 | |
with: | |
environments: ${{ matrix.environment }} | |
- name: Install nightlies | |
if: matrix.NOTE == 'Nightly Builds' | |
run: pixi run -e ${{ matrix.environment }} install-nightlies | |
- name: Install repository | |
run: pixi run -e ${{ matrix.environment }} postinstall | |
- name: Run pytest | |
run: pixi run -e ${{ matrix.environment }} test -nauto -m "not high_memory" | |
- name: Run doctest | |
# Check that the readme example will work by running via doctest. | |
# We run outside the repo to make the test a bit more similar to | |
# a user running after installing with conda. | |
run: | | |
mkdir ../temp | |
cp README.md ../temp | |
cd ../temp | |
pixi run --manifest-path ../tabmat/pixi.toml -e ${{ matrix.environment }} python -m doctest -v README.md |