1
- name : Continuous Integration Workflow
1
+ name : main
2
2
3
3
# Automatically cancel a previous run.
4
4
concurrency :
24
24
fail-fast : false
25
25
matrix :
26
26
os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
27
- python-version : ['3.7', '3.8', '3.9']
27
+ python-version : ['3.7', '3.8', '3.9', '3.10' ]
28
28
29
29
steps :
30
30
- uses : actions/checkout@v2
44
44
run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
45
45
46
46
- name : Upload coverage report for unit tests and doctests.
47
- if : runner.os == 'Linux' && matrix.python-version == '3.8 '
47
+ if : runner.os == 'Linux' && matrix.python-version == '3.9 '
48
48
shell : bash -l {0}
49
49
run : bash <(curl -s https://codecov.io/bash) -F unit -c
50
50
@@ -53,11 +53,25 @@ jobs:
53
53
run : tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
54
54
55
55
- name : Upload coverage reports of end-to-end tests.
56
- if : runner.os == 'Linux' && matrix.python-version == '3.8 '
56
+ if : runner.os == 'Linux' && matrix.python-version == '3.9 '
57
57
shell : bash -l {0}
58
58
run : bash <(curl -s https://codecov.io/bash) -F end_to_end -c
59
59
60
- - name : Validate codecov.yml
61
- if : runner.os == 'Linux' && matrix.python-version == '3.8'
60
+ docs :
61
+
62
+ name : Run documentation.
63
+ runs-on : ubuntu-latest
64
+
65
+ steps :
66
+ - uses : actions/checkout@v2
67
+ - uses : conda-incubator/setup-miniconda@v2
68
+ with :
69
+ auto-update-conda : true
70
+
71
+ - name : Install core dependencies.
72
+ shell : bash -l {0}
73
+ run : conda install -c conda-forge tox-conda
74
+
75
+ - name : Build docs
62
76
shell : bash -l {0}
63
- run : cat codecov.yml | curl --data-binary @- https://codecov.io/validate
77
+ run : tox -e sphinx
0 commit comments