Skip to content

Commit

Permalink
Makes documentation.yml a re-usable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhuck committed Apr 15, 2024
1 parent e0ae0da commit 02dc0b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
name: Build Documentation
name: Build and Publish Documentation

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: Set up Python 3.11
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/package_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/documentation.yml
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: Pull request

on:
push:
Expand All @@ -18,12 +18,12 @@ jobs:
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install testing environment and kegg_pull package
- name: Install testing environment and gpu-tracker package
run: bash tests/install.sh
- name: Test with pytest
run: bash tests/run.sh

0 comments on commit 02dc0b7

Please sign in to comment.