Skip to content

Commit

Permalink
Test publishing on TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed Aug 27, 2023
1 parent 9e05fae commit b4ef885
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/test.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Tests (tox)
name: CI

on:
- push
- pull_request

jobs:
build:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -41,3 +41,27 @@ jobs:
- uses: codecov/codecov-action@v3
with:
directory: '.tox/reports'

publish:
needs: [tests]
runs-on: ubuntu-latest
environment: testpypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Build
run: |
pip install build
python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit b4ef885

Please sign in to comment.