Skip to content

Commit

Permalink
separate build documentation to prevent running it on every machine
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Feb 4, 2024
1 parent 4a7d242 commit 473c5a7
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ jobs:
# Github action runners now have 4 cores
poetry run pytest -n 4 --cov --cov-report xml:coverage-report/coverage.xml
- name: Build documentation
run: poetry run make html --directory docs/

- name: Upload coverage report artifact to be used by Codecov
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -66,6 +63,29 @@ jobs:
verbose: true
name: codecov-umbrella

Build-Documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: Install poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: poetry install

- name: Build documentation
run: |
poetry run mkdocs build
Continuous-Deployment:
Expand All @@ -75,7 +95,7 @@ jobs:
issues: write
pull-requests: write

needs: Continuous-Integration
needs: [Continuous-Integration, Build-Documentation]

# if pulling to main, deploy to PyPI
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 473c5a7

Please sign in to comment.