-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #371 from HLasse/simplify-ci
ci: simplified CI
- Loading branch information
Showing
4 changed files
with
161 additions
and
170 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 |
---|---|---|
|
@@ -29,13 +29,7 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
pip install ".[docs,tutorials]" | ||
# if there is doc or tutorial requirements.txt file then install it | ||
if [ -f ./docs/tutorials/requirements.txt ]; then | ||
pip install -r ./docs/tutorials/requirements.txt | ||
fi | ||
if [ -f ./docs/requirements.txt ]; then | ||
pip install -r ./docs/requirements.txt | ||
fi | ||
pip install -r ./docs/tutorials/requirements.txt | ||
- name: Build and Commit | ||
uses: sphinx-notes/[email protected] | ||
|
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
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,28 @@ | ||
install: | ||
@echo "--- 🚀 Installing project ---" | ||
uv sync --extra docs --extra tests --extra style --extra style | ||
|
||
lint: | ||
@echo "--- 🧹 Running linters ---" | ||
ruff format . # running ruff formatting | ||
ruff check **/*.py --fix # running ruff linting | ||
|
||
lint-check: | ||
@echo "--- 🧹 Check is project is linted ---" | ||
ruff format . --check # running ruff formatting | ||
ruff check **/*.py # running ruff linting | ||
|
||
test: | ||
@echo "--- 🧪 Running tests ---" | ||
make install | ||
pytest tests/ | ||
|
||
build-docs: | ||
@echo "--- 📚 Building docs ---" | ||
@echo "Builds the docs and puts them in the 'site' folder" | ||
sphinx-build -M html docs/ docs/_build | ||
|
||
view-docs: | ||
@echo "--- 👀 Viewing docs ---" | ||
@echo You might need to rebuild the docs first" | ||
open docs/_build/html/index.html |
Oops, something went wrong.