Skip to content

Commit 4a3e39b

Browse files
committed
feat(cicd): add test in release workflow
1 parent 1fa3737 commit 4a3e39b

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ env:
99
python_version: 3.11
1010

1111
jobs:
12+
call-test:
13+
uses: ./github/workflows/test.yml
1214
release:
1315
runs-on: ubuntu-latest
16+
concurrency: release
17+
needs: [call-test]
1418
outputs:
1519
released: ${{ steps.release.outputs.released }}
1620
version: ${{ steps.release.outputs.version }}

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
types: [opened, synchronize, reopened]
66
branches:
77
- main
8+
workflow_call:
89

910
jobs:
1011
test:
@@ -14,8 +15,6 @@ jobs:
1415
python_version: ["3.11", "3.12"]
1516
steps:
1617
- uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 0
1918

2019
- name: Install poetry
2120
run: pipx install poetry~=1.8.3

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ readme = "README.md"
1414
packages = [
1515
{ include = "eventlib" },
1616
{ include = "tests", format = "sdist" },
17-
{ include = "examples", format = "sdist" },
1817
]
1918
classifiers = [
2019
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)