Skip to content

Commit e55437b

Browse files
committed
chore(build): test before release
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent db1a9db commit e55437b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,31 @@ env:
4242
POETRY_VERSION: "1.4.1"
4343

4444
jobs:
45+
quicktest:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout code
49+
# see https://github.com/actions/checkout
50+
uses: actions/checkout@v4
51+
- name: Setup Python Environment
52+
# see https://github.com/actions/setup-python
53+
uses: actions/setup-python@v4
54+
with:
55+
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
56+
architecture: 'x64'
57+
- name: Install poetry
58+
# see https://github.com/marketplace/actions/setup-poetry
59+
uses: Gr1N/setup-poetry@v8
60+
with:
61+
poetry-version: ${{ env.POETRY_VERSION }}
62+
- name: Install dependencies
63+
run: poetry install --no-root
64+
- name: Run tox
65+
run: poetry run tox run -e py -s false
66+
4567
release:
68+
needs:
69+
- quicktest
4670
# https://github.community/t/how-do-i-specify-job-dependency-running-in-another-workflow/16482
4771
# limit this to being run on regular commits, not the commits that semantic-release will create
4872
# but also allow manual workflow dispatch

0 commit comments

Comments
 (0)