Skip to content

Commit

Permalink
[PATCH] Preliminary TestPyPI support
Browse files Browse the repository at this point in the history
  • Loading branch information
Diapolo10 committed Oct 27, 2023
1 parent 4f04200 commit 4d33a3f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Publish distribution 📦 to Test PyPI
uses: JRubics/[email protected]
- name: Build test release 📦
uses: messense/maturin-action@v1
with:
manylinux: auto
command: build
args: --release --sdist -o dist --find-interpreter

- name: Publish test release 📦 to Test PyPI
uses: messense/maturin-action@v1
continue-on-error: true
env:
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_PASSWORD }}
with:
ignore_dev_requirements: 'yes'
pypi_token: ${{ secrets.TEST_PYPI_PASSWORD }}
repository_name: 'testpypi'
repository_url: 'https://test.pypi.org/legacy/'
command: upload
args: --skip-existing * --repository-url "https://test.pypi.org/legacy"
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,6 @@ python =
passenv = GITHUB_*
allowlist_externals = poetry
# commads_pre =
# poetry install --with dev,tests --no-root --sync
commands =
poetry run pytest
poetry run coverage report
Expand Down

0 comments on commit 4d33a3f

Please sign in to comment.