16
16
fail-fast : false
17
17
matrix :
18
18
# Checks based on python versions ---
19
- python-version : [' 3.9', ' 3.10' ]
19
+ python-version : [" 3.9", " 3.10" ]
20
20
requirements : [""]
21
21
22
22
include :
43
43
REQUIREMENTS : ${{ matrix.requirements }}
44
44
- name : Run tests
45
45
run : |
46
- pytest
46
+ pytest --cov
47
+ - name : Upload results to Codecov
48
+ uses : codecov/codecov-action@v4
49
+ with :
50
+ token : ${{ secrets.CODECOV_TOKEN }}
47
51
48
52
pre-commit :
49
53
name : " pre-commit checks"
55
59
python-version : " ${{ matrix.python-version }}"
56
60
- name : Install dev dependencies
57
61
run : |
58
- python -m pip install --upgrade pip
59
- python -m pip install ".[dev]"
62
+ python -m pip install --upgrade pip
63
+ python -m pip install ".[dev]"
60
64
-
uses :
pre-commit/[email protected]
61
65
62
66
release-pypi :
@@ -100,7 +104,6 @@ jobs:
100
104
run : |
101
105
make docs-build
102
106
# push to netlify -------------------------------------------------------
103
-
104
107
# set release name ----
105
108
106
109
- name : Configure pull release name
@@ -115,7 +118,6 @@ jobs:
115
118
# use branch name, but replace slashes. E.g. feat/a -> feat-a
116
119
echo "RELEASE_NAME=${GITHUB_REF_NAME/\//-}" >> $GITHUB_ENV
117
120
# deploy ----
118
-
119
121
- name : Create Github Deployment
120
122
121
123
id : deployment
@@ -125,7 +127,7 @@ jobs:
125
127
env : ${{ env.RELEASE_NAME }}
126
128
ref : ${{ github.head_ref }}
127
129
transient : true
128
- logs : ' https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
130
+ logs : " https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
129
131
130
132
- name : Netlify docs preview
131
133
run : |
@@ -149,8 +151,8 @@ jobs:
149
151
token : ${{ secrets.GITHUB_TOKEN }}
150
152
status : ${{ job.status }}
151
153
deployment_id : ${{ steps.deployment.outputs.deployment_id }}
152
- env_url : ' https://${{ steps.deployment.outputs.env }}--quartodoc.netlify.app'
153
- logs : ' https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
154
+ env_url : " https://${{ steps.deployment.outputs.env }}--quartodoc.netlify.app"
155
+ logs : " https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
154
156
- uses : peaceiris/actions-gh-pages@v3
155
157
if : github.event_name == 'release'
156
158
with :
0 commit comments