-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) 路 1.35 KB
/
Copy pathpython-app.yml
File metadata and controls
48 lines (42 loc) 路 1.35 KB
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Robot Framework API Demonstration
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Lint with ruff
run: poetry run ruff check
- name: Format with ruff
run: poetry run ruff format --check
- name: Test with Robot Framework
run: poetry run robot -x junit.xml tests/
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/*.xml'
include_passed: true
- name: Upload Test Report
uses: actions/upload-artifact@v4
if: always() # always run even if the previous step fails
with:
name: test-results
path: '**/*.html'