Skip to content

Commit

Permalink
Update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri-justeau committed Oct 6, 2022
1 parent a1104c5 commit 527adff
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ jobs:
coverage run -m unittest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
- name: Upload wheel artifacts
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: actions/upload-artifact@v2
with:
name: wheel-${{matrix.config.os}}-${{matrix.config.python-version}}-artifact
path: dist/
if-no-files-found: error

upload-pypi-macos:
needs: build-macos
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: setup msvc command
uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: |
sh build.sh
Expand All @@ -55,13 +57,14 @@ jobs:
coverage run -m unittest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
- name: Upload to PyPi
- name: Upload wheel artifacts
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
uses: actions/upload-artifact@v2
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
name: wheel-${{matrix.config.os}}-${{matrix.config.python-version}}-artifact
path: dist/
if-no-files-found: error


upload-pypi-windows:
needs: build-windows
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run(self):
'build_ext': CustomBuildExt,
'build': CustomBuild,
},
version='0.1',
version='0.1.0',
author="Dimitri Justeau-Allaire, Charles Prud'homme",
author_email="dimitri.justeau@gmail.com, charles.prudhomme@imt-atlantique.fr",
description="Python bindings to the Choco Constraint Programming solver",
Expand Down

0 comments on commit 527adff

Please sign in to comment.