Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhullar committed Apr 2, 2024
1 parent 11113cc commit 28ba0d5
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/build-pygo-jwt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,41 @@ on:
push:
branches:
- release/pygo-jwt
- feature/pygo-jwt

env:
package: "pygo-jwt"
go_version: 1.21.8

jobs:
build_sdist:
name: build sdist
runs-on: ubuntu-latest
defaults:
run:
working-directory: pygo-jwt
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: install requirements
run: |
pip install pipenv
pipenv lock
pipenv requirements --dev > requirements.txt
pip install -r requirements.txt
- name: build sdist
run: python -m build -n --sdist

- uses: actions/upload-artifact@v4
with:
name: build-sdist-${{ env.package }}-${{ strategy.job-index }}
path: ${{ env.package }}/dist/*

build_wheels:
name: build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -48,7 +77,7 @@ jobs:

publish_test:
if: github.event_name == 'workflow_dispatch'
needs: [build_wheels]
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
environment: testpypi
permissions:
Expand All @@ -59,6 +88,7 @@ jobs:
with:
path: dist
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 28ba0d5

Please sign in to comment.