Bump ruff from 0.5.5 to 0.5.6 #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
pull_request: | |
branches: | |
- $default-branch | |
workflow_call: | |
jobs: | |
test: | |
name: Test, lint, format check | |
runs-on: ubuntu-20.04 | |
container: | |
image: lukaszkostka/librouteros:${{ matrix.python-version }} | |
env: | |
CI: yes | |
strategy: | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: false | |
- name: Move images | |
run: mv /opt/* $GITHUB_WORKSPACE/images/ | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Load cache | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.venv | |
.mypy_cache | |
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: poetry install --no-interaction --no-root | |
- name: Install library | |
run: poetry install --no-interaction | |
- name: Run Ruff | |
run: poetry run ruff check . | |
- name: Type check | |
run: poetry run mypy librouteros | |
- name: Format | |
run: > | |
poetry run yapf -dr | |
librouteros | |
tests | |
- name: Unit tests | |
run: poetry run pytest tests/unit | |
- name: Integration tests | |
run: poetry run pytest -n auto tests/integration |