-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.28 KB
/
Copy pathci.yml
File metadata and controls
51 lines (40 loc) · 1.28 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
name: CI
permissions:
contents: read
on:
pull_request:
branches:
- master
jobs:
validate:
name: Validate source tree
runs-on: windows-latest
timeout-minutes: 20
env:
PYTHONIOENCODING: "utf-8"
INVOICE_HUB_TEST_MODE: "1"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: |
requirements.txt
requirements-build.txt
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install --disable-pip-version-check --no-input --prefer-binary --no-compile -r requirements.txt -r requirements-build.txt
- name: Verify CLI help output
run: python -m scripts.invoice_fetch --help
- name: Run unit tests
run: python -m unittest discover -v -s tests -p "test_*.py"
- name: Run repository privacy gate
run: python scripts/check_repo_privacy.py
- name: Run public export/source tree gate
run: python scripts/check_public_export.py .
- name: Compile-check Python sources
run: python -m compileall -q scripts/invoice_fetch