Skip to content

build(deps): Bump actions/checkout in the ci-dependencies group #60

build(deps): Bump actions/checkout in the ci-dependencies group

build(deps): Bump actions/checkout in the ci-dependencies group #60

Workflow file for this run

name: "Python"
on:
push:
paths:
- ".github/workflows/python.yaml"
- "pyproject.toml"
- "**/*.py"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: "Setup Python"
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.x"
allow-prereleases: true
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: "Install dependencies"
run: python -m pip install .[dev,tests]
- name: "Check formatting"
run: python -m ruff format --check .
- name: "Run ruff"
run: python -m ruff check --output-format=github .
test:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: "Setup Python"
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.x"
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: "Install dependencies"
run: |
python -m pip install coverage pytest
python -m pip install --editable .[dev,tests]
python -m pip install --editable scratch/projects/one_two_three
- name: "Run tests"
run: python -m coverage run -m pytest
- name: "Upload coverage reports to Codecov"
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}