-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.17 KB
/
ci.yml
File metadata and controls
53 lines (42 loc) · 1.17 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
name: CI
on:
push:
branches: ["main"]
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Build Docker image
run: docker build -t pqc-webauthn .
- name: Run syntax check
run: python -m compileall .
- name: Run import check
run: |
python - <<'PY'
import importlib
modules = [
"server.server.app",
"server.server.metadata",
"server.server.routes.advanced",
"server.server.routes.general",
"server.server.routes.simple",
]
for module in modules:
importlib.import_module(module)
print(f"Imported {module}")
PY
- name: Run pytest
run: |
pytest -v --maxfail=1 --disable-warnings -q