Skip to content

Commit 4ff8a43

Browse files
committed
chore(release.yml): remove commented out code and unused steps to clean up workflow file
feat(release.yml): add dependency on 'tests' job to ensure tests are run before release job to improve workflow reliability
1 parent 2b68c0d commit 4ff8a43

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,13 @@ on:
77
- master
88

99
jobs:
10+
tests:
11+
uses: ./.github/workflows/tests.yml
12+
1013
release:
1114
runs-on: ubuntu-22.04
15+
needs: tests
1216
steps:
13-
# - uses: actions/checkout@v4
14-
# - uses: actions/setup-python@v4
15-
# with:
16-
# python-version: "3.12"
17-
# - name: Install Poetry
18-
# uses: abatilo/actions-poetry@v2
19-
# - name: Setup a local virtual environment
20-
# run: |
21-
# poetry config virtualenvs.create true --local
22-
# poetry config virtualenvs.in-project true --local
23-
# - uses: actions/cache@v3
24-
# name: Define a cache for the virtual environment based on the dependencies lock file
25-
# with:
26-
# path: ./.venv
27-
# key: venv-${{ hashFiles('poetry.lock') }}
28-
# - name: Install dependencies
29-
# run: poetry install
30-
# - name: Configure poetry for publishing
31-
# run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
32-
# - name: Publish package to PyPI
33-
# run: poetry publish --build
34-
- uses: actions/checkout@v4
35-
- uses: ./.github/workflows/tests.yml
36-
with:
37-
python-version: "3.12"
3817
- name: Configure poetry for publishing
3918
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
4019
- name: Publish package to PyPI

0 commit comments

Comments
 (0)