-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Linter, formatter, and docs checks | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
|
||
checks: | ||
runs-on: ubuntu-22.04 | ||
if: "!contains(github.event.head_commit.message, 'CI Bot')" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
|
||
- name: Install package and dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install ruff | ||
pip install .[docs] | ||
- name: Run linter and formatter checks using ruff | ||
run: make checks | ||
|
||
- name: Run HTML builder for Sphinx documentation | ||
run: make docs |
This file was deleted.
Oops, something went wrong.