-
Notifications
You must be signed in to change notification settings - Fork 1.2k
43 lines (37 loc) · 1.03 KB
/
test_all.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: Test Default Branch
on:
push:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
# Do all the installations
python -m pip install --upgrade pip wheel setuptools
pip install .[testing]
# Print out the pip versions for debugging
pip list
- name: Test with pytest
run: |
# Include notebook tests
rm -rf .coverage.*
export TEST_NOTEBOOKS=y
pytest --junitxml=junit/test-results.xml --cov-report=xml tests
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: junit/test-results.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}