Skip to content

Commit ff00fd4

Browse files
committed
Added integration workflow
1 parent c9464de commit ff00fd4

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Python Tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
concurrency:
8+
group: ${{ github.event.pull_request.number || github.ref }}-tests
9+
permissions:
10+
contents: read
11+
env:
12+
IDP_CLIENT_CREDENTIAL: ${{ secrets.IDP_CLIENT_CREDENTIAL }}
13+
IDP_CLIENT_ID: ${{ secrets.IDP_CLIENT_ID }}
14+
IDP_TENANT_ID: ${{ secrets.IDP_TENANT_ID }}
15+
jobs:
16+
tests:
17+
strategy:
18+
matrix:
19+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10']
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v3
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install -r requirements.txt
32+
pip install -r dev_requirements.txt
33+
- name: Run tests with Python version ${{ matrix.python-version }}
34+
run: |
35+
pytest --junitxml=test-results.xml
36+
- name: Upload test results
37+
if: always()
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: test-results
41+
path: test-results.xml

0 commit comments

Comments
 (0)