Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Apr 1, 2024
1 parent 1715624 commit 8f2a6a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/tag_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f2a6a7

Please sign in to comment.