-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (52 loc) · 1.58 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: SemanticRelease
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12 with Robot Framework 7
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
pip install --upgrade pip
pip install uv
uv pip install -r requirements-dev.txt --python 3.12 --system
uv pip install robotframework-browser --python 3.12 --system
- name: Lint files
run: inv lint
- name: Run unit tests
run: |
rfbrowser init chromium
inv utest
- name: Run acceptance tests
run: |
inv atest
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v9.13.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build package
run: python -m build
if: steps.release.outputs.released == 'true'
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
- name: Publish package to GitHub Release
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}