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 :
@@ -94,13 +98,10 @@ jobs:
94
98
python -m pip install shiny shinylive
95
99
python -m pip install --no-deps dascore==0.0.8
96
100
- uses : quarto-dev/quarto-actions/setup@v2
97
- with :
98
- version : " 1.2.475"
99
101
- name : Build docs
100
102
run : |
101
103
make docs-build
102
104
# push to netlify -------------------------------------------------------
103
-
104
105
# set release name ----
105
106
106
107
- name : Configure pull release name
@@ -115,7 +116,6 @@ jobs:
115
116
# use branch name, but replace slashes. E.g. feat/a -> feat-a
116
117
echo "RELEASE_NAME=${GITHUB_REF_NAME/\//-}" >> $GITHUB_ENV
117
118
# deploy ----
118
-
119
119
- name : Create Github Deployment
120
120
121
121
id : deployment
@@ -125,7 +125,7 @@ jobs:
125
125
env : ${{ env.RELEASE_NAME }}
126
126
ref : ${{ github.head_ref }}
127
127
transient : true
128
- logs : ' https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
128
+ logs : " https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
129
129
130
130
- name : Netlify docs preview
131
131
run : |
@@ -149,8 +149,8 @@ jobs:
149
149
token : ${{ secrets.GITHUB_TOKEN }}
150
150
status : ${{ job.status }}
151
151
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 }}'
152
+ env_url : " https://${{ steps.deployment.outputs.env }}--quartodoc.netlify.app"
153
+ logs : " https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
154
154
- uses : peaceiris/actions-gh-pages@v3
155
155
if : github.event_name == 'release'
156
156
with :
0 commit comments