parent
abea8a1139
commit
594897aa7e
@ -1,3 +0,0 @@
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
extend-ignore = E203,E501
|
||||
@ -1,36 +1,10 @@
|
||||
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||
name: Prek checks
|
||||
|
||||
name: Python
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
prek:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
version: "latest"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv sync
|
||||
- name: Run Python tests
|
||||
run: |
|
||||
uv run pytest --cov
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
- uses: actions/checkout@v6
|
||||
- uses: j178/prek-action@v2
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
[mypy]
|
||||
|
||||
[mypy-json_stream.*]
|
||||
ignore_missing_imports = True
|
||||
@ -0,0 +1 @@
|
||||
3.14
|
||||
Loading…
Reference in new issue