-
Notifications
You must be signed in to change notification settings - Fork 139
45 lines (43 loc) · 1.17 KB
/
clean_code.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
name: Clean Code Verification
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tidy:
name: Robotidy - Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install robotidy
run: |
pip install robotframework-tidy
- name: Check Test Formatting
run: |
robotidy --check --diff atest
validate-syntax:
name: Validate Test Syntax
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install SSHLibrary
run: |
python -m pip install --upgrade pip
pip install .
- name: Run tests
run: |
robot --dryrun -d results -e no-gh-actions -b console.log atest
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: Syntax Validation
path: "results"
retention-days: 7