Skip to content

Commit

Permalink
Update actions, sphinx version and build docs for every PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jtronge committed Apr 1, 2024
1 parent deb9d0a commit a55d901
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
name: Publish docs

on:
# For manual ref
workflow_dispatch: {}
push:
branches: [main]
branches: [main, develop]
pull_request:
types: [opened, synchronize, edited, labeled, unlabeled]
branches: [main, develop]

# Needed for publishing to Github Pages
permissions:
Expand All @@ -22,7 +27,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: BEE Install
run: |
sudo apt-get update
Expand All @@ -36,6 +41,8 @@ jobs:
run: |
poetry run make -C docs/sphinx html
- name: Upload
# Only do the upload if this is on main
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/upload-pages-artifact@v1
with:
path: docs/sphinx/_build/html
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# available on 20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install and Configure
run: |
. ./ci/env.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: PyLama Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
run: |
pip install pylama==8.4.1 pyflakes==3.0.1 pylint==2.15.9 pydocstyle==6.1.1 2>&1 >/dev/null
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# available on 20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install and Configure
run: |
. ./ci/env.sh
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pylint = "2.15.9"
pytest = "7.2.0"
pytest-mock = "3.3.1"
# This is commented out until we can figure out why it's causing `poetry update` to loop forever
sphinx = "^2.1"
sphinx = "^6"
sphinx-rtd-theme = "^1.0"
cwltool = "^3.0.20200324120055"

Expand Down

0 comments on commit a55d901

Please sign in to comment.