Skip to content

Commit 739a3a2

Browse files
committed
ci: Only pull docker image on release (after tests pass)
1 parent 3161f99 commit 739a3a2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,27 @@ jobs:
5252
with:
5353
token: ${{ secrets.CODECOV_TOKEN }}
5454

55+
release:
56+
runs-on: ubuntu-latest
57+
needs: build
58+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
59+
60+
strategy:
61+
matrix:
62+
python-version: ["3.10"]
63+
64+
steps:
65+
- uses: actions/checkout@v3
66+
67+
- name: Install poetry
68+
run: pipx install "poetry==1.1.15"
69+
70+
- name: Set up Python ${{ matrix.python-version }}
71+
uses: actions/setup-python@v4
72+
with:
73+
python-version: ${{ matrix.python-version }}
74+
cache: 'poetry'
75+
5576
- name: Build package
5677
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
5778
run: poetry build

0 commit comments

Comments
 (0)