Skip to content

Commit

Permalink
feat(cicd): add test in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mickare committed Aug 11, 2024
1 parent 1fa3737 commit 4a3e39b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ env:
python_version: 3.11

jobs:
call-test:
uses: ./github/workflows/test.yml
release:
runs-on: ubuntu-latest
concurrency: release
needs: [call-test]
outputs:
released: ${{ steps.release.outputs.released }}
version: ${{ steps.release.outputs.version }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [opened, synchronize, reopened]
branches:
- main
workflow_call:

jobs:
test:
Expand All @@ -14,8 +15,6 @@ jobs:
python_version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install poetry
run: pipx install poetry~=1.8.3
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ readme = "README.md"
packages = [
{ include = "eventlib" },
{ include = "tests", format = "sdist" },
{ include = "examples", format = "sdist" },
]
classifiers = [
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit 4a3e39b

Please sign in to comment.