Fix: workflow file, use poetry to build documentation #6
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
name: "CallMePixelMan's Workflow" | |
on: ["push", "pull_request"] | |
jobs: | |
first-job: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Install poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Use poetry to install dependencies | |
run: | | |
poetry --version | |
poetry install | |
- name: Lint with Ruff | |
run: poetry run ruff . | |
- name: Test with PyTest | |
run: poetry run pytest . | |
- name: Build documentation with Sphinx | |
uses: ammaraskar/sphinx-action@master | |
with: | |
docs-folder: "docs/" |