File tree Expand file tree Collapse file tree 3 files changed +30
-64
lines changed Expand file tree Collapse file tree 3 files changed +30
-64
lines changed Original file line number Diff line number Diff line change 88 branches :
99 - main
1010
11- defaults :
12- run :
13- shell : powershell
14-
1511jobs :
16- build-packages :
12+ Build :
13+ if : " !contains(github.event.pull_request.labels.*.name, 'docs-only')"
1714 runs-on : ${{ matrix.os }}
1815 strategy :
1916 matrix :
2017 os : [macos-latest, windows-latest]
18+ python : ['3.8', '3.9', '3.10']
2119
2220 steps :
23- - uses : actions/checkout@v2
24- with :
25- submodules : recursive
26-
27- -
uses :
conda-incubator/[email protected] 21+ - uses : compas-dev/compas-actions.build@v3
2822 with :
29- miniconda-version : " latest"
30- activate-environment : igl
31- channels : conda-forge
32- python-version : 3.8
33-
34- - name : build
35- run : |
36- conda install git cmake">=3.14" boost eigen=3.3 compas --yes
37- pip install -r requirements-dev.txt
38-
39- - name : Lint with flake8
40- run : |
41- invoke lint
42-
43- - name : Test with pytest
44- run : |
45- invoke test
46-
47- - name : Test build docs
48- run : |
49- invoke docs
23+ invoke_lint : true
24+ check_import : true
25+ use_conda : true
26+ python : ${{ matrix.python }}
Original file line number Diff line number Diff line change 55 branches :
66 - main
77 tags :
8- - " v* "
8+ - ' v* '
99 pull_request :
1010 branches :
1111 - main
1212
1313jobs :
14- build :
15- name : custom build and deploy docs
14+ docs :
1615 runs-on : windows-latest
17- defaults :
18- run :
19- shell : powershell
2016 steps :
21- - uses : actions/checkout@v2
22- with :
23- submodules : recursive
2417 - uses : compas-dev/compas-actions.docs@v2
2518 with :
2619 github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1- name : Release
2-
31on :
42 push :
53 tags :
6- - " v*"
4+ - ' v*'
5+
6+ name : Create Release
77
88jobs :
9- Release :
10- runs-on : ubuntu-latest
9+ build :
10+ runs-on : ${{ matrix.os }}
11+ strategy :
12+ matrix :
13+ os : [macos-latest, windows-latest]
14+ python : ['3.8', '3.9', '3.10']
15+
1116 steps :
12- - uses : actions/checkout@v2
13- - name : Create Release
14- id : create_release
15- uses : actions/create-release@v1
16- env :
17- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17+ - uses : compas-dev/compas-actions.build@v3
1818 with :
19- tag_name : ${{ github.ref }}
20- release_name : Release ${{ github.ref }}
21- draft : false
22- prerelease : false
19+ invoke_lint : true
20+ check_import : true
21+ use_conda : true
22+ python : ${{ matrix.python }}
2323
2424 Publish :
25- needs : Release
25+ needs : build
2626 runs-on : ubuntu-latest
2727 steps :
28- - uses : actions/checkout@v2
29- with :
30- submodules : recursive
31- - uses : actions/setup-python@v2
32- with :
33- python-version : " 3.x"
34- -
uses :
compas-dev/[email protected] 28+ - uses : compas-dev/compas-actions.publish@v2
3529 with :
36- token : ${{ secrets.PYPI }}
30+ pypi_token : ${{ secrets.PYPI }}
31+ github_token : ${{ secrets.GITHUB_TOKEN }}
32+ bdist_wheel : false
You can’t perform that action at this time.
0 commit comments