1
0
Fork 0
mirror of synced 2025-01-07 21:52:14 -05:00
dotbot/.github/workflows/ci.yml

77 lines
1.9 KiB
YAML
Raw Normal View History

2020-12-18 14:34:28 -05:00
name: CI
on:
push:
2020-12-26 05:01:29 -05:00
pull_request:
2020-12-18 14:34:28 -05:00
schedule:
- cron: '0 8 * * 6'
jobs:
test:
2022-05-12 17:30:44 -04:00
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
2020-12-18 14:34:28 -05:00
strategy:
2022-05-12 17:30:44 -04:00
fail-fast: false
2020-12-18 14:34:28 -05:00
matrix:
os: ["ubuntu-20.04", "macos-latest"]
2024-12-18 09:45:18 -05:00
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "pypy-3.9"
- "pypy-3.10"
2022-05-12 17:30:44 -04:00
include:
- os: "windows-latest"
python: "3.8"
- os: "windows-latest"
python: "3.9"
- os: "windows-latest"
python: "3.10"
2023-09-09 20:53:07 -04:00
- os: "windows-latest"
python: "3.11"
- os: "windows-latest"
python: "3.12"
2024-12-18 09:45:18 -05:00
- os: "windows-latest"
python: "3.13"
exclude:
- os: "macos-latest"
python: "3.7"
2022-05-12 17:30:44 -04:00
runs-on: ${{ matrix.os }}
name: "Test: Python ${{ matrix.python }} on ${{ matrix.os }}"
2020-12-18 14:34:28 -05:00
steps:
- uses: actions/checkout@v4
2020-12-18 14:34:28 -05:00
with:
submodules: recursive
- uses: actions/setup-python@v5
2020-12-18 14:34:28 -05:00
with:
python-version: ${{ matrix.python }}
- uses: pypa/hatch@install
- run: hatch test -v --cover --include python=$(echo ${{ matrix.python }} | tr -d '-') tests
- run: hatch run coverage:xml
2024-11-21 06:43:19 -05:00
- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
typecheck:
name: Type check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: pypa/hatch@install
- run: hatch run types:check
2022-01-30 18:48:30 -05:00
fmt:
name: Format and lint
runs-on: ubuntu-24.04
2022-01-30 18:48:30 -05:00
steps:
2024-11-21 06:43:19 -05:00
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: pypa/hatch@install
- run: hatch fmt --check