Skip to content

Commit f4cfc34

Browse files
committed
ci: simplify publish workflow to build and upload on release
1 parent 34e2eb9 commit f4cfc34

1 file changed

Lines changed: 3 additions & 33 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,19 @@ name: Upload Python Package to PyPI
33
on:
44
release:
55
types: [published]
6-
workflow_dispatch: # Allows manual trigger from GitHub Actions tab
6+
workflow_dispatch:
77

88
permissions:
99
contents: read
10-
id-token: write # Required for PyPI Trusted Publishing (OIDC)
1110

1211
jobs:
13-
test:
14-
name: Test on Python ${{ matrix.python-version }}
15-
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
python-version: ["3.10", "3.11", "3.12", "3.13"]
19-
20-
steps:
21-
- uses: actions/checkout@v4
22-
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v5
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
28-
- name: Install dependencies
29-
run: pip install -e ".[dev]"
30-
31-
- name: Run unit tests
32-
run: pytest tests/unit/ -v --tb=short
33-
34-
- name: Run Robot Framework acceptance tests
35-
run: |
36-
mkdir -p results
37-
robot --outputdir results tests/acceptance/
38-
3912
publish:
4013
name: Build & Publish to PyPI
41-
needs: test
4214
runs-on: ubuntu-latest
43-
environment:
44-
name: pypi
45-
url: https://pypi.org/p/robotframework-mimesislibrary
4615

4716
steps:
48-
- uses: actions/checkout@v4
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
4919

5020
- name: Set up Python
5121
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)