File tree Expand file tree Collapse file tree 3 files changed +105
-31
lines changed Expand file tree Collapse file tree 3 files changed +105
-31
lines changed Original file line number Diff line number Diff line change 1+ name : Full CI Tests
2+
3+ on :
4+ workflow_dispatch : {} # Allows manual trigger from the Actions UI
5+
6+ jobs :
7+
8+ integration-tests :
9+
10+ runs-on : ${{ matrix.os }}
11+
12+ strategy :
13+ matrix :
14+ os : [ ubuntu-latest, windows-latest ]
15+ python-version : [ 3.12 ]
16+
17+ steps :
18+
19+ - name : Check out repository
20+ uses : actions/checkout@v3
21+
22+ - name : Set up Python 3.12
23+ uses : actions/setup-python@v4
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Cache pip
28+ uses : actions/cache@v3
29+ with :
30+ path : ~/.cache/pip
31+ key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
32+ restore-keys : |
33+ ${{ runner.os }}-pip-
34+
35+ - name : Install dependencies
36+ run : |
37+ python -m pip install --upgrade pip
38+ pip install -r requirements.txt --use-deprecated=legacy-resolver
39+
40+ - name : Run Black check
41+ run : black --check xdoc/ tests/
42+
43+ - name : Run coverage (no VCR)
44+ run : |
45+ coverage run -m pytest --maxfail=1 --disable-warnings --no-vcr -v
46+ coverage report -m
47+ coverage_full xml
48+
49+ env :
50+ XDOC_OPENAI_API_KEY : ${{ secrets.XDOC_OPENAI_API_KEY }}
Original file line number Diff line number Diff line change 1+ name : Full CI Tests
2+
3+ on :
4+
5+ push :
6+ branches : [ "master" ]
7+
8+ pull_request :
9+ branches : [ "master" ]
10+
11+ jobs :
12+
13+ integration-tests :
14+
15+ runs-on : ${{ matrix.os }}
16+
17+ strategy :
18+ matrix :
19+ os : [ ubuntu-latest ]
20+ python-version : [ 3.12 ]
21+
22+ steps :
23+
24+ - name : Check out repository
25+ uses : actions/checkout@v3
26+
27+ - name : Set up Python 3.12
28+ uses : actions/setup-python@v4
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+
32+ - name : Cache pip
33+ uses : actions/cache@v3
34+ with :
35+ path : ~/.cache/pip
36+ key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
37+ restore-keys : |
38+ ${{ runner.os }}-pip-
39+
40+ - name : Install dependencies
41+ run : |
42+ python -m pip install --upgrade pip
43+ pip install -r requirements.txt --use-deprecated=legacy-resolver
44+
45+ - name : Run Black check
46+ run : black --check xdoc/ tests/
47+
48+ - name : Run coverage (with VCR)
49+ run : |
50+ coverage run -m pytest --maxfail=1 --disable-warnings -v
51+ coverage report -m
52+ coverage_quick xml
53+
54+ env :
55+ XDOC_OPENAI_API_KEY : ${{ secrets.XDOC_OPENAI_API_KEY }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments