Skip to content

Commit b80f9a2

Browse files
committed
updated github actions
1 parent fe38304 commit b80f9a2

File tree

1 file changed

+29
-19
lines changed

1 file changed

+29
-19
lines changed

.github/workflows/tests.yaml

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,36 @@ jobs:
55
test:
66
name: Test (Python ${{ matrix.python-version }})
77
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
108
if: >
119
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
1311
strategy:
1412
fail-fast: false
1513
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"]
1715

1816
steps:
19-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
2018

21-
- uses: actions/[email protected]
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
2221
with:
2322
python-version: ${{ matrix.python-version }}
2423

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
2629

27-
- run: pip install -r requirements.txt
30+
- name: Install dependencies
31+
run: pip install -r requirements.txt
2832

29-
- run: pip install -e .[dev]
33+
- name: Install dev dependencies
34+
run: pip install -e .[dev]
3035

31-
- run: pytest -v
36+
- name: Run tests
37+
run: pytest -v
3238

3339
examples:
3440
name: Check Examples
@@ -38,18 +44,22 @@ jobs:
3844
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
3945
4046
steps:
41-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v3
4248

43-
- uses: actions/[email protected]
49+
- name: Set up Python 3.13
50+
uses: actions/setup-python@v4
4451
with:
4552
python-version: 3.13.2
4653

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
5256

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
5459

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

Comments
 (0)