Skip to content

Improvement/ES-303 2507 add ruff GitHub action (#9) #9

Improvement/ES-303 2507 add ruff GitHub action (#9)

Improvement/ES-303 2507 add ruff GitHub action (#9) #9

Workflow file for this run

name: pytests
on:
push:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install uv # https://eed-solutions.atlassian.net/wiki/spaces/ES/pages/782434388/Best+Practice+uv+package+management#Github-Actions
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Setup Python
uses: actions/setup-python@v5
with:
# python-version-file: .python-version
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
uv sync
- name: Run pytests
run: |
uv run pytest tests