Skip to content

Commit

Permalink
Separate Python version tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Dec 4, 2023
1 parent 2a9fc23 commit 16d563c
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 11 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci-py3_10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test-py3.10

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Run pre-commit
uses: pre-commit/[email protected]

build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Setup Pixi
uses: prefix-dev/[email protected]
- name: install py3.10
run: pixi add python=3.10
- name: Run Tests 3.10
run: pixi run test
32 changes: 32 additions & 0 deletions .github/workflows/ci-py3_9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test-py3.9

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Run pre-commit
uses: pre-commit/[email protected]

build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Setup Pixi
uses: prefix-dev/[email protected]
- name: install py3.9
run: pixi add python=3.9
- name: Run Tests 3.9
run: pixi run test
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,7 @@ jobs:
uses: actions/checkout@v2
- name: Setup Pixi
uses: prefix-dev/[email protected]
- name: install py3.9
run: pixi add python=3.9
- name: Run Tests 3.9
run: pixi run test
- name: install py3.10
run: pixi add python=3.10
- name: Run Tests 3.10
run: pixi run test
- name: install py3.11
run: pixi add python=3.11
- name: Run Tests 3.11
- name: Run Tests
run: pixi run test
- name: Publish Code Coverage
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 16d563c

Please sign in to comment.