Skip to content

Bump actions/checkout from 4 to 7 #12

Bump actions/checkout from 4 to 7

Bump actions/checkout from 4 to 7 #12

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install package + dev deps
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Lint with ruff
run: ruff check .
- name: Type-check with mypy
run: mypy hkfilings
- name: Run tests
run: pytest --cov-report=xml
- name: Upload coverage (codecov, optional)
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
fail_ci_if_error: false
continue-on-error: true
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build distribution
run: |
python -m pip install --upgrade pip build
python -m build
- name: Verify distribution is installable
run: |
python -m venv /tmp/freshvenv
/tmp/freshvenv/bin/pip install dist/*.whl
/tmp/freshvenv/bin/python -c "from hkfilings import HKFilingsClient, __version__; print(__version__)"