5
5
test :
6
6
name : Test (Python ${{ matrix.python-version }})
7
7
runs-on : ubuntu-latest
8
+ # always run on push events
9
+ # only run on pull_request_target event when pull request pulls from fork repository
8
10
if : >
9
11
github.event_name == 'push' ||
10
12
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
11
13
strategy :
12
14
fail-fast : false
13
15
matrix :
14
- python-version : [3.7, 3.8, 3.9, "3.10", "3.13"]
16
+ python-version : [3.7, 3.8, 3.9, "3.10","3.13"]
15
17
16
18
steps :
17
- - uses : actions/checkout@v3
19
+ - uses : actions/checkout@v2
18
20
19
- - name : Set up Python
20
- uses : actions/setup-python@v4
21
+
21
22
with :
22
23
python-version : ${{ matrix.python-version }}
23
24
24
- - name : Install System Dependencies
25
- run : sudo apt-get update && sudo apt-get install -y libffi-dev libssl-dev build-essential
25
+ - run : pip install -U setuptools
26
26
27
- - name : Upgrade pip and setuptools
28
- run : pip install --upgrade pip setuptools wheel
27
+ - run : pip install -r requirements.txt
29
28
30
- - name : Install dependencies
31
- run : pip install -r requirements.txt
29
+ - run : pip install -e .[dev]
32
30
33
- - name : Install dev dependencies
34
- run : pip install -e .[dev]
35
-
36
- - name : Run tests
37
- run : pytest -v
31
+ - run : pytest -v
38
32
39
33
examples :
40
34
name : Check Examples
@@ -44,22 +38,18 @@ jobs:
44
38
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
45
39
46
40
steps :
47
- - uses : actions/checkout@v3
41
+ - uses : actions/checkout@v2
48
42
49
- - name : Set up Python 3.13
50
- uses : actions/setup-python@v4
43
+ - uses : actions/setup-python@v4
51
44
with :
52
45
python-version : 3.13.2
53
46
54
- - name : Install System Dependencies
55
- run : sudo apt-get update && sudo apt-get install -y libffi-dev libssl-dev build-essential
47
+ - run : pip install --upgrade setuptools
48
+
49
+ - run : pushd examples/aml && pip install -r requirements.txt && popd
50
+
51
+ - run : pushd examples/yoti_example_django && pip install --upgrade pip && pip install -r requirements.txt && popd
56
52
57
- - name : Upgrade pip and setuptools
58
- run : pip install --upgrade pip setuptools wheel
53
+ - run : pushd examples/yoti_example_flask && pip install -r requirements.txt && popd
59
54
60
- - name : Install Example Dependencies
61
- run : |
62
- pushd examples/aml && pip install -r requirements.txt && popd
63
- pushd examples/yoti_example_django && pip install -r requirements.txt && popd
64
- pushd examples/yoti_example_flask && pip install -r requirements.txt && popd
65
- pushd examples/doc_scan && pip install -r requirements.txt && popd
55
+ - run : pushd examples/doc_scan && pip install -r requirements.txt && popd
0 commit comments