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