Skip to content

Merge pull request #48 from MatthewSZhang/minibatch-doc #10

Merge pull request #48 from MatthewSZhang/minibatch-doc

Merge pull request #48 from MatthewSZhang/minibatch-doc #10

Workflow file for this run

name: Test
on:
workflow_call:
push:
branches: [ "main", "*.X" ]
pull_request:
branches: [ "main", "*.X" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
environments: default
cache: true
- name: Re-install local
run: |
pixi run rebuild
- name: Lint with ruff
run: |
pixi run lint
- name: Lint with cython-lint
run: |
pixi run cython-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: |
pixi run doc
CMD=doctest pixi run doc
- name: Test coverage
shell: bash
run: |
FMT=xml pixi run test-coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build SDist
run: |
pixi run build-sdist
- name: Store artifacts
uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz