Skip to content

Commit

Permalink
improved versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sr1998 committed Jun 24, 2024
1 parent fbbecd8 commit 43c3d4f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ jobs:
- name: Install Poetry
run: pipx install poetry || pip install poetry
- name: Install dependencies
run: poetry install --with dev
run: |
poetry lock --no-update
poetry install --with dev
- name: Verify tests
run: |
if ! gh run list --branch "${{ github.ref }}" --event push --workflow test.yml --json conclusion -q '[0].conclusion' | grep -q "success"; then
echo "Tests did not pass. Aborting."
exit 1
fi
- name: Bump version and push tag
if: success() # Only continue if all was successful till now
uses: anothrNick/github-tag-action@1.67.0
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test_workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Bump version
name: Test
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:

jobs:
test:
Expand Down Expand Up @@ -43,6 +44,8 @@ jobs:
- name: Install Poetry
run: pipx install poetry || pip install poetry
- name: Install dependencies
run: poetry install --with dev
run: |
poetry lock --no-update
poetry install --with dev
- name: Run tests
run: poetry run pytest

0 comments on commit 43c3d4f

Please sign in to comment.