Skip to content

CI coverage report in xml #2

CI coverage report in xml

CI coverage report in xml #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
environments: default
- name: Lint with ruff
run: |
pixi run lint
- name: Format with black
run: |
pixi run fmt
- name: Type check with mypy
run: |
pixi run type
- name: Test with pytest
run: |
pixi run test
- name: Test with doctest
shell: bash
run: |
CMD=doctest pixi run doc
- name: Test coverage
run: |
pixi run test-coverage-xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
runs-on: ${{ matrix.os }}
needs: test
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp3*-*
CIBW_SKIP: pp* *i686* *win32 *musllinux* *-macosx_universal2 *-win_arm64 *-manylinux_ppc64le *-manylinux_s390x
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
CIBW_ARCHS_LINUX: auto64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: auto64
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl