diff --git a/.github/workflows/tag_and_release.yaml b/.github/workflows/tag_and_release.yaml index c2c6bc0..7987915 100644 --- a/.github/workflows/tag_and_release.yaml +++ b/.github/workflows/tag_and_release.yaml @@ -29,10 +29,11 @@ jobs: - name: Read VERSION file id: getversion run: echo "::set-output name=version::$(python ./setup.py --version)" + # only make release if there is NOT a git tag for this version - name: "Check: package version has corresponding git tag" # this will prevent this from doing anything when run through ACT - if: ${{ !env.ACT }} + if: ${{ !env.ACT AND contains(steps.getversion.outputs.version, '.') }} id: tagged shell: bash run: git show-ref --tags --verify --quiet -- "refs/tags/v${{ steps.getversion.outputs.version }}" && echo "::set-output name=tagged::0" || echo "::set-output name=tagged::1" diff --git a/.github/workflows/test_build.yaml b/.github/workflows/test_build.yaml index ac5ff74..1986a0c 100644 --- a/.github/workflows/test_build.yaml +++ b/.github/workflows/test_build.yaml @@ -41,6 +41,11 @@ jobs: run: pip install setuptools wheel build pyinstaller - name: Install requirements run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Read VERSION file + id: getversion + run: echo "$(python ./setup.py --version)" + - name: Run Tests - Source run: python tests/tests.py - name: Run build