Skip to content

Commit e40c431

Browse files
authored
CI: add integration tests to github action yaml (#28)
* ci: add integration tests to github action yaml * ci: fix github actions workflow yaml syntax * ci: add steps to install pytest in integration test workflow * ci: reduce integration to only Python 3.9 to reduce resources burden
1 parent 93a92f1 commit e40c431

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/continuous-integration.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name: "Continuous Integration"
1010
on: [push, pull_request] # run unit tests on each commit so developers can notice errors as early as possible
1111

1212
jobs:
13-
test:
13+
unit_tests:
1414
name: Unit tests
1515
runs-on: ubuntu-latest
1616
strategy:
@@ -30,4 +30,27 @@ jobs:
3030
run: pip install pytest
3131
- name: Run pytest
3232
run: pytest
33+
integration_tests:
34+
name: Integration tests
35+
runs-on: ubuntu-latest
36+
strategy:
37+
matrix: # matrix testing strategy
38+
python-version: ['3.9'] # integration is expensive so testing only 1 major version
39+
steps:
40+
- name: Check out repository code
41+
uses: actions/checkout@v2
42+
# Setup Python (faster than using Python container)
43+
- name: Setup Python
44+
uses: actions/setup-python@v2
45+
with:
46+
python-version: ${{ matrix.python-version }}
47+
- name: Install solid
48+
run: python setup.py install
49+
- name: Install pytest
50+
run: pip install pytest
51+
- name: Run Solid Authorization tests
52+
run: python tests/integration_test_auth.py
53+
- name: Run Solid API tests
54+
run: python tests/integration_test_solid_api.py
55+
3356

0 commit comments

Comments
 (0)