1- name : Continuous Integration Workflow
1+ name : main
22
33# Automatically cancel a previous run.
44concurrency :
2424 fail-fast : false
2525 matrix :
2626 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' ]
2828
2929 steps :
3030 - uses : actions/checkout@v2
4444 run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
4545
4646 - 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 '
4848 shell : bash -l {0}
4949 run : bash <(curl -s https://codecov.io/bash) -F unit -c
5050
@@ -53,11 +53,25 @@ jobs:
5353 run : tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
5454
5555 - 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 '
5757 shell : bash -l {0}
5858 run : bash <(curl -s https://codecov.io/bash) -F end_to_end -c
5959
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
6276 shell : bash -l {0}
63- run : cat codecov.yml | curl --data-binary @- https://codecov.io/validate
77+ run : tox -e sphinx
0 commit comments