Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Linters

on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install Python dependencies
run: |
python -m pip install -U pip pre-commit
- name: Run linters
run: |
pre-commit run --hook-stage=manual --all-files
docs:
name: Docs Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
python-version: '3.10'
- name: Install dependencies
run: |
pip install -U pip
pip install -e ".[docs]"
- name: Build docs
run: |
cd docs
make html
42 changes: 5 additions & 37 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,21 @@ name: Python Tests

on:
pull_request:
paths:
- '**.py'
- '!setup.py'
- '.github/workflows/test-python.yml'
workflow_dispatch:

concurrency:
group: tests-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash -eux {0}

jobs:

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install Python dependencies
run: |
python -m pip install -U pip pre-commit
- name: Run linters
run: |
pre-commit run --hook-stage=manual --all-files

build:
name: Django Test Suite
runs-on: ubuntu-latest
Expand Down Expand Up @@ -121,22 +108,3 @@ jobs:
timezones
update
xor_lookups

docs:
name: Docs Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
python-version: '3.10'
- name: Install dependencies
run: |
pip install -U pip
pip install -e ".[docs]"
- name: Build docs
run: |
cd docs
make html