-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
38 lines (36 loc) · 1.23 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
# Check out gcf-python and the shared-fixtures gcf repo as SIBLINGS so the
# conformance runner's ../gcf/tests/conformance path resolves on CI.
- uses: actions/checkout@v4
with:
path: gcf-python
- uses: actions/checkout@v4
with:
repository: blackwell-systems/gcf
path: gcf
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e ".[dev]" || pip install -e . && pip install pytest
working-directory: gcf-python
- name: Unit tests
run: pytest tests/ -v --ignore=tests/test_conformance_v2.py --ignore=tests/test_roundtrip_v2.py
working-directory: gcf-python
- name: Conformance tests (shared fixtures)
run: pytest tests/test_conformance_v2.py -v
working-directory: gcf-python
- name: Property-based round-trip (100K random + 100K adversarial)
run: pytest tests/test_roundtrip_v2.py -v
working-directory: gcf-python