Skip to content

Adds running tests to release workflow #8

Adds running tests to release workflow

Adds running tests to release workflow #8

Workflow file for this run

name: Release the Next Version of the Package
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish-test-pypi:
runs-on: ubuntu-latest
steps:
- name: Display version
run: echo "Publishing package of version: ${{ github.event.release.tag_name }}"

Check failure on line 13 in .github/workflows/package_release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/package_release.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install build
python3 -m pip install twine
- name: Build package
run: python -m build
- name: Check package
run: python3 -m twine check dist/*
# - name: Publish package to Test-PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
test-test-pypi:
needs: publish-test-pypi
uses: ./.github/workflows/tests.yml
with:
install_command: "python3 -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple gpu-tracker==${{ github.event.release.tag_name }}"
# - name: Publish package to PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}