Skip to content

Commit 068128b

Browse files
yuriverweijCopilot
andcommitted
fix: update Robot Framework version in CI and moved linting checks inside workflow
Co-authored-by: Copilot <copilot@github.com>
1 parent 57f3edf commit 068128b

3 files changed

Lines changed: 38 additions & 43 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
# xvfb-run --auto-servernum python atest/run.py --zip ${{ matrix.browser }}
8585

8686
- name: Run tests with latest python and latest robot framework
87-
if: matrix.python-version == '3.14.4' && matrix.rf-version == '7.4.2'
87+
if: matrix.python-version == '3.14.4' && matrix.rf-version == '7.4.1'
8888
run: |
8989
xvfb-run --auto-servernum python atest/run.py --zip ${{ matrix.browser }}
9090

.github/workflows/LintFormatCheck.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/Select.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,40 @@ jobs:
8080
with:
8181
name: sl_${{ matrix.config.python-version }}_${{ matrix.config.rf-version }}_${{ matrix.config.selenium-version }}_${{ matrix.config.browser }}
8282
path: atest/zip_results
83-
overwrite: true
83+
overwrite: true
84+
ruff:
85+
runs-on: ubuntu-latest
86+
87+
steps:
88+
- uses: actions/checkout@v6
89+
90+
- name: Set up Python
91+
uses: actions/setup-python@v6
92+
with:
93+
python-version: "3.14.4"
94+
95+
- name: Install dev dependencies
96+
run: |
97+
python -m pip install --upgrade pip
98+
pip install -r requirements-dev.txt
99+
100+
- name: Ruff format check
101+
id: format
102+
continue-on-error: true
103+
run: |
104+
python -m invoke formatter --check
105+
106+
- name: Ruff lint
107+
id: lint
108+
continue-on-error: true
109+
run: |
110+
python -m invoke lint
111+
112+
- name: Fail if any Ruff step failed
113+
if: always()
114+
run: |
115+
echo "format outcome: ${{ steps.format.outcome }}"
116+
echo "lint outcome: ${{ steps.lint.outcome }}"
117+
if [ "${{ steps.format.outcome }}" != "success" ] || [ "${{ steps.lint.outcome }}" != "success" ]; then
118+
exit 1
119+
fi

0 commit comments

Comments
 (0)