Skip to content
Closed
6 changes: 5 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Checks
on: [pull_request, push]
on:
push:
pull_request:
branches: [master]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
name: "CodeQL"

on:
push: null
pull_request: null
push:
pull_request:
schedule:
- cron: "26 6 * * 6"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docs Tests

on:
push:
paths:
- "docs/**"
- "discord/**"
- "test/**"
- "requirements/**"
pull_request:
paths:
- "docs/**"
- "discord/**"
- "test/**"
- "requirements/**"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
docs:
name: "Build Docs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: "pip"
cache-dependency-path: "requirements/docs.txt"
check-latest: true
- name: Install dependencies
run: |
python -m pip install -U pip
pip install ".[docs]"
- name: Check Links
if: github.event_name == 'schedule'
run: |
cd docs
make linkcheck
- name: Compile to html
run: |
cd docs
make html
17 changes: 16 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
name: Type Check and Lint
on: [push, pull_request]

on:
push:
paths:
- "docs/**"
- "discord/**"
- "test/**"
- "requirements/**"
pull_request:
branches: [master]
paths:
- "docs/**"
- "discord/**"
- "test/**"
- "requirements/**"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
35 changes: 11 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,27 @@ name: Unit Tests

on:
push:
paths:
- "discord/**"
- "test/**"
- "requirements/**"
pull_request:
branches: [master]
paths:
- "discord/**"
- "test/**"
- "requirements/**"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
pytest:
name: "Test build with matrix"
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -45,27 +56,3 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: "pip"
cache-dependency-path: "requirements/docs.txt"
check-latest: true
- name: Install dependencies
run: |
python -m pip install -U pip
pip install ".[docs]"
- name: Check Links
if: github.event_name == 'schedule'
run: |
cd docs
make linkcheck
- name: Compile to html
run: |
cd docs
make html
8 changes: 7 additions & 1 deletion .github/workflows/todo.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Check TODO
on: [push, pull_request]

on:
push:
pull_request:
branches: [master]
workflow_dispatch:

jobs:
todo:
runs-on: ubuntu-latest
Expand Down