Skip to content

Commit

Permalink
chore: update publish-to-pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Aug 27, 2024
1 parent d8c62c4 commit b6a7924
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-n-publish:
environment: Unit Test
name: Build and publish to PyPI
runs-on: ubuntu-latest
needs: [authorize]
Expand All @@ -36,9 +37,14 @@ jobs:
python-version: 3.7

- name: Install dependencies
run: python -m pip install build setuptools wheel twine amplitude_analytics parameterized python-semantic-release==7.34.6
run: python -m pip install build setuptools wheel twine amplitude_analytics parameterized python-dotenv~=0.21.1 python-semantic-release==7.34.6

- name: Run Test
env:
API_KEY: ${{ secrets.API_KEY }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
EU_API_KEY: ${{ secrets.EU_API_KEY }}
EU_SECRET_KEY: ${{ secrets.EU_SECRET_KEY }}
run: python -m unittest discover -s ./tests -p '*_test.py'

- name: Publish distribution PyPI --dry-run
Expand Down

0 comments on commit b6a7924

Please sign in to comment.