Skip to content

feat: implement weather.gov astronomical data fetching and display #28

feat: implement weather.gov astronomical data fetching and display

feat: implement weather.gov astronomical data fetching and display #28

Workflow file for this run

name: UV Build - Pylint Lint
on:
pull_request:
branches:
- '*'
jobs:
pylint-lint:
runs-on: ubuntu-latest
permissions:
contents: read
env:
UV_VERSION: '0.10.2'
PYTHON_VERSION: '3.13'
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Restore global uv cache
id: cache-restore
uses: actions/cache/restore@v5
with:
path: |
~/.cache/uv
~/.local/share/uv
.venv
key: uv-main-${{ env.UV_VERSION }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('pyproject.toml', 'uv.lock') }}
restore-keys: |
uv-main-
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: ${{ env.UV_VERSION }}
python-version: ${{ env.PYTHON_VERSION }}
enable-cache: false
- name: Install dependencies
run: uv sync
- name: Run pylint
run: |
uv run -- pylint src
uv run -- pylint tests
- name: Save uv caches
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
path: |
~/.cache/uv
~/.local/share/uv
.venv
key: uv-main-${{ env.UV_VERSION }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('pyproject.toml', 'uv.lock') }}