11name : mesh2vev
2- on : [ push]
2+ on : push
33permissions :
44 contents : write
55
88 strategy :
99 matrix :
1010 python-version : ["3.9", "3.11"]
11- os-version : ["ubuntu-latest" ]
11+ os-version : ["ubuntu-latest"]
1212 runs-on : ${{ matrix.os-version }}
1313 steps :
1414 - uses : actions/checkout@v3
1515 - name : Setup CI
16- uses : ' ./.github/actions/ci-setup'
16+ uses : " ./.github/actions/ci-setup"
1717 with :
1818 os : ${{ matrix.os-version }}
1919 python-version : ${{ matrix.python-version }}
2020
2121 prepare-win :
2222 strategy :
2323 matrix :
24- python-version : [ "3.9", "3.11" ]
25- os-version : [ "windows-latest" ]
24+ python-version : ["3.9", "3.11"]
25+ os-version : ["windows-latest"]
2626 runs-on : ${{ matrix.os-version }}
2727 steps :
2828 - uses : actions/checkout@v3
2929 - name : Setup CI
30- uses : ' ./.github/actions/ci-setup'
30+ uses : " ./.github/actions/ci-setup"
3131 with :
3232 os : ${{ matrix.os-version }}
3333 python-version : ${{ matrix.python-version }}
3434
35-
3635 check-format :
3736 needs : prepare-linux
3837 runs-on : ubuntu-latest
3938 steps :
4039 - uses : actions/checkout@v3
4140 - name : Setup CI
42- uses : ' ./.github/actions/ci-setup'
41+ uses : " ./.github/actions/ci-setup"
4342 with :
4443 os : " ubuntu-latest"
4544 python-version : " 3.9"
@@ -51,15 +50,15 @@ jobs:
5150 needs : prepare-linux
5251 runs-on : ubuntu-latest
5352 steps :
54- - uses : actions/checkout@v3
55- - name : Setup CI
56- uses : ' ./.github/actions/ci-setup'
57- with :
58- os : " ubuntu-latest"
59- python-version : " 3.9"
60- - name : check
61- run : |
62- poetry run pylint mesh2vec tests docs/examples scripts
53+ - uses : actions/checkout@v3
54+ - name : Setup CI
55+ uses : " ./.github/actions/ci-setup"
56+ with :
57+ os : " ubuntu-latest"
58+ python-version : " 3.9"
59+ - name : check
60+ run : |
61+ poetry run pylint mesh2vec tests docs/examples scripts
6362
6463 audit :
6564 needs : [prepare-linux, prepare-win]
@@ -69,132 +68,129 @@ jobs:
6968 os-version : ["windows-latest", "ubuntu-latest"]
7069 runs-on : ${{ matrix.os-version }}
7170 steps :
72- - uses : actions/checkout@v3
73- - name : Setup CI
74- uses : ' ./.github/actions/ci-setup'
75- with :
76- os : ${{ matrix.os-version }}
77- python-version : ${{ matrix.python-version }}
78- - name : check
79- run : |
80- poetry run pip-audit --ignore-vuln GHSA-w596-4wvx-j9j6
71+ - uses : actions/checkout@v3
72+ - name : Setup CI
73+ uses : " ./.github/actions/ci-setup"
74+ with :
75+ os : ${{ matrix.os-version }}
76+ python-version : ${{ matrix.python-version }}
77+ - name : check
78+ run : |
79+ poetry run pip-audit --ignore-vuln GHSA-w596-4wvx-j9j6
8180
8281 doctest :
8382 needs : [prepare-linux, prepare-win]
8483 strategy :
8584 matrix :
8685 python-version : ["3.9", "3.11"]
87- os-version : [ "windows-latest", "ubuntu-latest" ]
86+ os-version : ["windows-latest", "ubuntu-latest"]
8887 runs-on : ${{ matrix.os-version }}
8988 steps :
90- - uses : actions/checkout@v3
91- - name : Setup CI
92- uses : ' ./.github/actions/ci-setup'
93- with :
94- os : ${{ matrix.os-version }}
95- python-version : ${{ matrix.python-version }}
96- - name : test
97- run : |
98- poetry run sphinx-build docs/source build/documentation/ -W -b html && poetry run sphinx-build docs/source build/documentation/ -W -b doctest
89+ - uses : actions/checkout@v3
90+ - name : Setup CI
91+ uses : " ./.github/actions/ci-setup"
92+ with :
93+ os : ${{ matrix.os-version }}
94+ python-version : ${{ matrix.python-version }}
95+ - name : test
96+ run : |
97+ poetry run sphinx-build docs/source build/documentation/ -W -b html && poetry run sphinx-build docs/source build/documentation/ -W -b doctest
9998
10099 unit-tests :
101100 needs : [prepare-linux, prepare-win]
102101 strategy :
103102 matrix :
104103 python-version : ["3.9", "3.11"]
105- os-version : [ "windows-latest", "ubuntu-latest" ]
104+ os-version : ["windows-latest", "ubuntu-latest"]
106105 runs-on : ${{ matrix.os-version }}
107106 steps :
108- - uses : actions/checkout@v3
109- - name : Setup CI
110- uses : ' ./.github/actions/ci-setup'
111- with :
112- os : ${{ matrix.os-version }}
113- python-version : ${{ matrix.python-version }}
114- - name : test
115- run : |
116- poetry run pytest tests
107+ - uses : actions/checkout@v3
108+ - name : Setup CI
109+ uses : " ./.github/actions/ci-setup"
110+ with :
111+ os : ${{ matrix.os-version }}
112+ python-version : ${{ matrix.python-version }}
113+ - name : test
114+ run : |
115+ poetry run pytest tests
117116
118117 docs :
119118 needs : prepare-linux
120119 runs-on : ubuntu-latest
121120 steps :
122- - uses : actions/checkout@v3
123- - name : Setup CI
124- uses : ' ./.github/actions/ci-setup'
125- with :
126- os : " ubuntu-latest"
127- python-version : " 3.9"
128- - name : build docs
129- run : |
130- poetry run sphinx-build docs/source build/documentation/ -W -b html
131- - name : Store docs
132- uses : actions/upload-artifact@v4
133- with :
134- name : docs
135- path : build/documentation/
121+ - uses : actions/checkout@v3
122+ - name : Setup CI
123+ uses : " ./.github/actions/ci-setup"
124+ with :
125+ os : " ubuntu-latest"
126+ python-version : " 3.9"
127+ - name : build docs
128+ run : |
129+ poetry run sphinx-build docs/source build/documentation/ -W -b html
130+ - name : Store docs
131+ uses : actions/upload-artifact@v4
132+ with :
133+ name : docs
134+ path : build/documentation/
136135
137136 build :
138137 needs : prepare-linux
139138 runs-on : ubuntu-latest
140139 steps :
141- - uses : actions/checkout@v3
142- - name : Setup CI
143- uses : ' ./.github/actions/ci-setup'
144- with :
145- os : " ubuntu-latest"
146- python-version : " 3.9"
147- - name : build wheels
148- run : |
149- poetry build -f wheel -vvv && poetry run check-wheel-contents dist/
150- - name : Store wheels
151- uses : actions/upload-artifact@v4
152- with :
153- name : dist
154- path : dist/
155-
140+ - uses : actions/checkout@v3
141+ - name : Setup CI
142+ uses : " ./.github/actions/ci-setup"
143+ with :
144+ os : " ubuntu-latest"
145+ python-version : " 3.9"
146+ - name : build wheels
147+ run : |
148+ poetry build -f wheel -vvv && poetry run check-wheel-contents dist/
149+ - name : Store wheels
150+ uses : actions/upload-artifact@v4
151+ with :
152+ name : dist
153+ path : dist/
156154
157155 release-docs :
158156 if : startsWith(github.ref, 'refs/tags/v')
159- needs : [ check-format, build, unit-tests, doctest, docs, audit, pylint ]
157+ needs : [check-format, build, unit-tests, doctest, docs, audit, pylint]
160158 runs-on : ubuntu-latest
161159 steps :
162- - uses : actions/checkout@v3
163- - name : Setup CI
164- uses : ' ./.github/actions/ci-setup'
165- with :
166- os : " ubuntu-latest"
167- python-version : " 3.9"
168- - name : Download docs
169- uses : actions/download-artifact@v4
170- with :
171- name : docs
172- path : build/documentation/
173- - name : Deploy
174- uses : peaceiris/actions-gh-pages@v3
175- with :
176- github_token : ${{ secrets.GITHUB_TOKEN }}
177- publish_dir : ./build/documentation/
160+ - uses : actions/checkout@v3
161+ - name : Setup CI
162+ uses : " ./.github/actions/ci-setup"
163+ with :
164+ os : " ubuntu-latest"
165+ python-version : " 3.9"
166+ - name : Download docs
167+ uses : actions/download-artifact@v4
168+ with :
169+ name : docs
170+ path : build/documentation/
171+ - name : Deploy
172+ uses : peaceiris/actions-gh-pages@v3
173+ with :
174+ github_token : ${{ secrets.GITHUB_TOKEN }}
175+ publish_dir : ./build/documentation/
178176
179177 release :
180178 if : startsWith(github.ref, 'refs/tags/v')
181179 needs : [check-format, build, unit-tests, doctest, docs, audit, pylint]
182180 runs-on : ubuntu-latest
183181 steps :
184- - uses : actions/checkout@v3
185- - name : Setup CI
186- uses : ' ./.github/actions/ci-setup'
187- with :
188- os : " ubuntu-latest"
189- python-version : " 3.9"
190- - name : Download wheels
191- uses : actions/download-artifact@v4
192- with :
193- name : dist
194- path : dist/
195- - name : Publish package to TestPyPI
196- uses : pypa/gh-action-pypi-publish@release/v1
197- with :
198- password : ${{ secrets.PYPI_API_TOKEN }}
199-
200-
182+ - uses : actions/checkout@v3
183+ - name : Setup CI
184+ uses : " ./.github/actions/ci-setup"
185+ with :
186+ os : " ubuntu-latest"
187+ python-version : " 3.9"
188+ - name : Download wheels
189+ uses : actions/download-artifact@v4
190+ with :
191+ name : dist
192+ path : dist/
193+ - name : Publish package to TestPyPI
194+ uses : pypa/gh-action-pypi-publish@release/v1
195+ with :
196+ password : ${{ secrets.PYPI_API_TOKEN }}
0 commit comments