Skip to content

Aktualizacja statusu projektu 2 #24

Aktualizacja statusu projektu 2

Aktualizacja statusu projektu 2 #24

Workflow file for this run

name: Quick Checks
on:
push:
branches: ["main"]
jobs:
ruff:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: requirements-ci.txt
- name: Install Ruff
run: |
python -m pip install --upgrade pip
pip install ruff==0.6.9
- name: Ruff lint
run: |
ruff check . --output-format=github
- name: Ruff format check
run: |
ruff format --check .
unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: ruff
env:
PYTEST_DISABLE_PLUGIN_AUTOLOAD: "1"
PYTEST_ASYNCIO_MODE: "auto"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: requirements-ci.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-ci.txt
- name: Run fast unit tests
run: |
pytest pc_client/tests/ \
-q --maxfail=1 --timeout=30 --timeout-method=thread \
-p pytest_asyncio.plugin \
-p pytest_timeout