Skip to content

Commit cd61077

Browse files
committed
ci: run integration tests separately
1 parent c0dcd73 commit cd61077

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ jobs:
5858
matrix:
5959
os: [ubuntu-latest, windows-latest, macos-latest]
6060
pyversion: ["3.x", "3.8"]
61+
test-type: ['unit']
62+
include:
63+
- os: ubuntu-latest
64+
pyversion: '3.x'
65+
test-type: 'integration'
6166
steps:
6267
- uses: actions/checkout@v3
6368
- name: Set up Python ${{ matrix.pyversion }}
@@ -82,7 +87,11 @@ jobs:
8287
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
8388
- name: Run tests
8489
run: |
85-
pytest -s --nbval --cov=pysrc ./pytest/
90+
if [ "${{ matrix.test-type }}" == "integration" ]; then
91+
pytest -s --nbval --cov=pysrc ./pytest/integration/
92+
else
93+
pytest -s --nbval --cov=pysrc ./pytest/ -k "not integration"
94+
fi
8695
env:
8796
PYTHON_JULIACALL_THREADS: '2'
8897
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)