-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 2.12 KB
/
Copy pathci.yml
File metadata and controls
68 lines (63 loc) · 2.12 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
name: CI
on:
pull_request:
push:
schedule:
- cron: '21 5 * * 1'
workflow_call:
permissions: {}
env:
PYTHON_DOTENV_DISABLED: '1'
PYTHONDONTWRITEBYTECODE: '1'
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.11'
- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '22'
package-manager-cache: false
- name: Install runtime dependencies
run: 'python -m pip install --require-hashes --only-binary=:all: -r requirements.txt'
- name: Install test and audit tools
run: python -m pip install -r requirements-dev.txt
- name: Isolated Python tests
run: python -B tools/run_tests.py
- name: Worker tests
run: node --test api/webhook.test.mjs
- name: Python coverage by module
run: python -m coverage run tools/run_tests.py
- name: Coverage report
run: python -m coverage report
dependencies:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.11'
- name: Install audit tools
run: python -m pip install -r requirements-dev.txt
- name: Audit runtime including transitive dependencies
run: python -m pip_audit --strict --require-hashes -r requirements.txt --progress-spinner off
- name: Audit development dependencies
run: python -m pip_audit --strict -r requirements-dev.txt --progress-spinner off