-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.19 KB
/
Copy pathci-python.yml
File metadata and controls
48 lines (44 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Python CI
on:
push:
branches: [main]
paths:
- "implementations/python/**"
- "spec/**"
- ".github/workflows/ci-python.yml"
pull_request:
paths:
- "implementations/python/**"
- "spec/**"
- ".github/workflows/ci-python.yml"
workflow_dispatch:
permissions:
contents: read
defaults:
run:
working-directory: implementations/python
jobs:
test:
name: ${{ matrix.os }} / Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python: ["3.10", "3.13"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: implementations/python/pyproject.toml
- run: python -m pip install --upgrade build ruff
- run: python -m ruff check src tests
- run: python -m ruff format --check src tests
- run: python -m unittest discover -s tests -v
env:
PYTHONPATH: src
- run: python -m build
- run: python -m pip install .
- run: cubic-py --version