Skip to content

Commit 811cd81

Browse files
authored
Add non-Linux CI jobs (#57)
1 parent 831e988 commit 811cd81

File tree

5 files changed

+56
-4
lines changed

5 files changed

+56
-4
lines changed

.github/workflows/tests-macos.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: macOS
2+
on: [push, pull_request]
3+
4+
jobs:
5+
tests:
6+
runs-on: macos-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
20+
- name: Run tests
21+
run: |
22+
pip install -U tox
23+
tox -e py
24+
25+
- name: Upload coverage to Codecov
26+
uses: codecov/codecov-action@v5

.github/workflows/main.yml renamed to .github/workflows/tests-ubuntu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Ubuntu
22
on: [push, pull_request]
33

44
jobs:

.github/workflows/tests-windows.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Windows
2+
on: [push, pull_request]
3+
4+
jobs:
5+
tests:
6+
runs-on: windows-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
20+
- name: Run tests
21+
run: |
22+
pip install -U tox
23+
tox -e py
24+
25+
- name: Upload coverage to Codecov
26+
uses: codecov/codecov-action@v5

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.9.7
3+
rev: v0.11.2
44
hooks:
55
- id: ruff
66
args: [ --fix ]

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ skip_install = true
2121
[testenv:twinecheck]
2222
basepython = python3
2323
deps =
24-
twine==5.1.1
25-
build==1.2.2
24+
twine==6.1.0
25+
build==1.2.2.post1
2626
commands =
2727
python -m build --sdist
2828
twine check dist/*

0 commit comments

Comments
 (0)