Skip to content

Bump pytest-cov from 7.0.0 to 7.1.0 #149

Bump pytest-cov from 7.0.0 to 7.1.0

Bump pytest-cov from 7.0.0 to 7.1.0 #149

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"
- name: Install dependencies
run: |
uv sync --extra dev
- name: Run tests with pytest
run: |
uv run python -m pytest test_weather.py test_integration.py -v --tb=short --cov=weather --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: matrix.python-version == '3.12'
with:
files: ./coverage.xml
fail_ci_if_error: false
verbose: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install dependencies
run: |
uv sync --extra dev
- name: Check formatting with ruff
run: |
uv run ruff check weather.py test_weather.py test_integration.py