Skip to content

v0.1.14

v0.1.14 #18

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
release:
types: [published]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-12, macos-14]
environment: [py310, py311, py312]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.environment }}
- name: Lint with ruff
run: |
pixi run -e ${{ matrix.environment }} lint
- name: Test with pytest
run: |
pixi run -e ${{ matrix.environment }} test
- name: Test with doctest
shell: bash
run: |
CMD=doctest pixi run -e ${{ matrix.environment }} doc
- name: Build package
run: |
pixi run -e ${{ matrix.environment }} build-wheel
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}-${{ strategy.job-index }}
path: dist/
publish:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1