Skip to content

Commit

Permalink
fix artifact naming
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski committed Feb 24, 2024
1 parent e520f38 commit b441b28
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

Expand All @@ -28,6 +29,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: pymeshfix-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -39,23 +41,31 @@ jobs:
- name: Build sdist
run: pipx run build --sdist

- name: Install package from sdist
run: pip install dist/*.tar.gz

- name: Install test requirements
run: pip install -r requirements_tests.txt

- name: Run tests
run: pytest

- uses: actions/upload-artifact@v4
with:
name: pymeshfix-sdist
path: dist/*.tar.gz

upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# upload to PyPI on every tag
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist

# upload to PyPI
- uses: pypa/gh-action-pypi-publish@v1.8.11
with:
user: __token__
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires = [
"setuptools>=42",
"wheel>=0.33.0",
"cython>=0.29.0",
"cython>=3.0.0",
"oldest-supported-numpy"
]

Expand All @@ -18,7 +18,7 @@ filterwarnings = [

[tool.cibuildwheel]
archs = ["auto64"] # 64-bit only
skip = "pp* *musllinux*" # disable PyPy and musl-based wheels
skip = "pp* *musllinux* cp37-*" # disable PyPy, musl-based wheels, and Python < 3.8
test-requires = "pytest pymeshfix"
test-command = "pytest {project}/tests"

Expand All @@ -28,7 +28,7 @@ archs = ["x86_64", "universal2"]
test-skip = ["*_arm64", "*_universal2:arm64"]

[tool.codespell]
skip = '*.cxx,*.h,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./doc/build/*,./doc/images/*,./dist/*,*~,.hypothesis*,./doc/source/examples/*,*cover,*.dat,*.mac,build,./docker/mapdl/v*,./factory/*,./ansys/mapdl/core/mapdl_functions.py,PKG-INFO,*.mypy_cache/*,./docker/mapdl/*,./_unused/*'
skip = '*.cxx,*.h,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./doc/build/*,./doc/images/*,./dist/*,*~,.hypothesis*,./doc/source/examples/*,*cover,*.dat,*.mac,build,./docker/mapdl/v*,./factory/*,PKG-INFO,*.mypy_cache/*'
quiet-level = 3

[tool.isort]
Expand Down

0 comments on commit b441b28

Please sign in to comment.