Skip to content

Fix document config #120

Fix document config

Fix document config #120

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v7
- name: 馃煥 Set up Pixi
uses: prefix-dev/setup-pixi@v0.10.2
with:
environments: lint
- name: 馃Ч Execute lint
run: pixi run -e lint lint
checks:
name: Test 馃悕 ${{ matrix.environment }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
environment: [test-pyoldest, test-pylatest]
runs-on: ${{ matrix.os }}
steps:
- name: check out repo
uses: actions/checkout@v7
- name: 馃煥 Set up Pixi
uses: prefix-dev/setup-pixi@v0.10.2
with:
environments: ${{ matrix.environment }}
- name: 馃И Execute pytest
env:
pytest_github_report: true
run: pixi run -e ${{ matrix.environment }} test --cov-report xml
- name: 馃摝 Disambiguate coverage filename by environment and OS
run: mv .coverage ".coverage.${{ matrix.environment }}.${{ matrix.os }}.xml"
- name: 馃摛 Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}