diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 3d4e80e..3579cbf 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -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] @@ -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