mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00

Currently, linting is done in one specific job of the big test Matrix, and it's very easy to overlook. But we want linting to be the first thing to fix. Also reorganize and rename jobs for readability. Finally, use python 3.11 for lint/docs because python 3.12 seems to break dev install.
42 lines
1,010 B
YAML
42 lines
1,010 B
YAML
name: Lint & Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [ 'master', 'stable-*' ]
|
|
pull_request:
|
|
branches: [ 'master', 'stable-*' ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11"
|
|
cache: 'pip'
|
|
cache-dependency-path: '**/pyproject.toml'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install tox
|
|
- name: Run Lint
|
|
run: tox -e lint
|
|
|
|
test_doc:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11"
|
|
cache: 'pip'
|
|
cache-dependency-path: '**/pyproject.toml'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install tox
|
|
- name: Check we can generate documentation
|
|
run: tox -e docs
|