Skip to content

CI

CI #2956

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.environment }}-build
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
environment: [test-py311, test-py312, min-deps, minio]
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.41.4
environments: ${{ matrix.environment }}
- name: List installed libraries
run: |
pixi install --environment ${{ matrix.environment }}
pixi list --environment ${{ matrix.environment }}
- name: Running Tests
run: |
pixi run -e ${{ matrix.environment }} run-tests-xml-cov
- name: Upload code coverage to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
check-docs:
name: check-docs
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.41.4
- name: List installed libraries
run: |
pixi install --environment docs
pixi list --environment docs
- name: Check documentation build for warnings
run: |
pixi run -e docs check-docs