Skip to content

Commit

Permalink
test publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAntoineSchmidtQC committed Oct 16, 2023
1 parent bf61132 commit 3f44e8f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build and upload to PyPI

on:
push:
pull_request:
release:
types:
Expand All @@ -16,6 +17,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -49,6 +52,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v4
name: Install Python
Expand All @@ -66,20 +71,21 @@ jobs:
path: dist/*.tar.gz

upload_testpypi:
if: github.event_name == 'release' && github.event.action == 'published'
#if: github.event_name == 'release' && github.event.action == 'published'
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment:
name: release
url: https://test.pypi.org/p/tabmat
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.GH_TESTPYPI_UPLOAD }}
repository-url: https://test.pypi.org/legacy/

upload_pypi:
if: github.event_name == 'release' && github.event.action == 'published'
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@

setup(
name="tabmat",
use_scm_version={"version_scheme": "post-release"},
use_scm_version={
"version_scheme": "post-release",
"local_scheme": "no-local-version",
},
setup_requires=["setuptools_scm"],
description="Efficient matrix representations for working with tabular data.",
long_description=long_description,
Expand Down

0 comments on commit 3f44e8f

Please sign in to comment.