Skip to content

Commit

Permalink
CI: simplify workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley committed Sep 20, 2024
1 parent 28d21e2 commit 0f9a6b3
Show file tree
Hide file tree
Showing 3 changed files with 2,261 additions and 566 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
with:
pixi-version: v0.30.0
cache: true
- name: Run lint checks
run: pixi run lint
- name: Run Pylint
run: pixi run -e lint pylint

checks:
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
Expand All @@ -44,35 +44,23 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.13"]
runs-on: [ubuntu-latest, windows-latest, macos-14]

include:
- python-version: "pypy-3.10"
runs-on: ubuntu-latest
environment: [ci-py309, ci-py312]
runs-on: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- uses: prefix-dev/[email protected]
with:
pixi-version: v0.30.0
cache: true

- name: Install package
run: python -m pip install .[test]

- name: Test package
run: pixi run -e test test-ci
run: pixi run test-ci

- name: Upload coverage report
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Upload coverage report
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
Loading

0 comments on commit 0f9a6b3

Please sign in to comment.