Skip to content

Bump filelock from 3.19.1 to 3.20.3 #250

Bump filelock from 3.19.1 to 3.20.3

Bump filelock from 3.19.1 to 3.20.3 #250

Workflow file for this run

name: run-tests
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.13"
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock
ignore-nothing-to-cache: true
- name: Install development dependencies
run: |
uv sync --extra dev --python 3.13 --locked
- name: Run pre-commit on changed files
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
uv run pre-commit run --from-ref "${{ github.event.pull_request.base.sha }}" --to-ref "${{ github.event.pull_request.head.sha }}"
elif [ "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]; then
uv run pre-commit run --from-ref "${{ github.event.before }}" --to-ref "${{ github.sha }}"
else
uv run pre-commit run --all-files
fi
test:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9"]
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock
ignore-nothing-to-cache: true
- name: Install test dependencies
run: |
uv sync --extra test --python ${{ matrix.python-version }} --locked
- name: Test with pytest
run: |
uv run python -m pytest -v --cov=dlms_cosem