Repository navigation
69 lines (64 loc) · 2.03 KB
/
Copy pathci.yml
File metadata and controls
69 lines (64 loc) · 2.03 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install ruff
- run: ruff check omk_crawl/ tests/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e ".[curl,dev]"
- run: pytest tests/ -v --tb=short -m 'not live'
platform:
# The TCP stack layer exists because kernel behaviour differs by OS, so a
# Linux-only run cannot verify its own premise. This job runs the
# platform-sensitive tests on the kernels the stack profiles claim to be:
# windows-11 / windows-10, macos-14, and linux-6. Deliberately narrow —
# unrelated suite failures on another OS would hide the signal.
name: platform (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e ".[curl,dev]"
- run: pytest tests/test_evasion_layers.py -v --tb=long -m 'not live' -k "Tcp or Platform or Solver or Transport"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install build
- run: python -m build
- run: |
python -c "
import zipfile, glob
whl = glob.glob('dist/*.whl')[0]
names = zipfile.ZipFile(whl).namelist()
assert any('py.typed' in n for n in names), 'py.typed missing from wheel'
print('py.typed found in wheel ✓')
"