66 - ' v*'
77
88jobs :
9- build :
9+ Build :
1010 runs-on : ${{ matrix.os }}
1111 strategy :
1212 matrix :
13- os : [ubuntu-latest, macos-latest, windows-latest ]
14- python : ['3.10', '3.11' ]
13+ os : [ubuntu-latest]
14+ python : ['3.10']
1515
1616 steps :
1717 - uses : compas-dev/compas-actions.build@v4
1818 with :
19- python : ${{ matrix.python }}
2019 invoke_lint : true
20+ check_import : false
21+ use_conda : false
2122 invoke_test : false
23+ python : ${{ matrix.python }}
2224 - name : Run unit tests
2325 run : |
2426 pytest tests/unit
@@ -44,81 +46,12 @@ jobs:
4446 docker rm -f nanomq
4547
4648 Publish :
47- needs : build
48- runs-on : windows -latest
49+ needs : Build
50+ runs-on : ubuntu -latest
4951 steps :
50- # The steps should rely on compas-actions.publish
51- # but this bug is blocking it: https://github.com/compas-dev/compas-actions.publish/issues/1
52- # so atm, it's a copy of the steps
53-
54- # - uses: compas-dev/compas-actions.publish@v2
55- # with:
56- # pypi_token: ${{ secrets.PYPI }}
57- # github_token: ${{ secrets.TOKEN }}
58- # build_ghpython_components: true
59- # gh_source: src/compas_eve/ghpython/components
60- # gh_target: src/compas_eve/ghpython/components/ghuser
61- # release_name_prefix: COMPAS EVE v
62-
63- - uses : actions/checkout@v3
64-
65- - name : Get Version From Tag
66- id : tag_name
67- run : |
68- echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
69- shell : bash
70-
71- - name : Get Changelog Entry
72- id : changelog_reader
73- uses : mindsers/changelog-reader-action@v2
74- with :
75- version : ${{ steps.tag_name.outputs.current_version }}
76- path : ./CHANGELOG.md
77-
78- - name : Assemble Release Name
79- id : assemble_release_name
80- shell : bash
81- run : |
82- release_name="COMPAS EVE v${{ steps.tag_name.outputs.current_version }}"
83- echo Using release name: $release_name
84- echo "release_name=$release_name" >> $GITHUB_OUTPUT
85-
86- - name : Create Release
87- id : create_release
88- uses : ncipollo/release-action@v1
52+ - uses : compas-dev/compas-actions.publish@v3
8953 with :
90- body : ${{ steps.changelog_reader.outputs.changes }}
91- token : ${{ secrets.TOKEN }}
92- name : ${{ steps.assemble_release_name.outputs.release_name }}
93-
94- - name : Setup Python 3.10
95- uses : actions/setup-python@v4
96- with :
97- python-version : " 3.10"
98-
99- - name : Install CPython dependencies
100- run : |
101- python -m pip install --upgrade pip
102- python -m pip install wheel
103-
104- 105- - name : Install dependencies
106- run : |
107- choco install ironpython --version=2.7.8.1
108-
109- - uses : compas-dev/compas-actions.ghpython_components@v4
110- with :
111- source : src/compas_eve/ghpython/components
112- target : src/compas_eve/ghpython/components/ghuser
113- prefix : " "
114-
115- - shell : bash
116- run : |
117- python -m pip install --upgrade pip
118- pip install setuptools wheel twine
119- python setup.py clean --all sdist bdist_wheel
120- twine check dist/*
121- twine upload dist/* --skip-existing
122- env :
123- TWINE_USERNAME : __token__
124- TWINE_PASSWORD : ${{ secrets.PYPI }}
54+ publish_to_pypi : true
55+ pypi_token : ${{ secrets.PYPI }}
56+ github_token : ${{ secrets.GITHUB_TOKEN }}
57+ python : ' 3.10'
0 commit comments