Skip to content

Commit

Permalink
Use update_docs workflow for tests too, and add doc dependencies in p…
Browse files Browse the repository at this point in the history
…yproject.toml

Also try setup-python@v4, and trigger the workflow for this branch only, ete4.
  • Loading branch information
jordibc committed Sep 20, 2023
1 parent 157d2a7 commit e19dbf0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 45 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/test.yml

This file was deleted.

13 changes: 9 additions & 4 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Update github pages docs
on:
push:
branches:
- online_docs
- ete4

jobs:
build:
Expand All @@ -16,15 +16,14 @@ jobs:

# Setup Python environment
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'

# Install dependencies for your project
- name: Install Dependencies
run: |
pip install .[treeview]
pip install sphinx
pip install .[treeview,test,doc]
# Build Sphinx documentation
- name: Generate Sphinx Documentation
Expand All @@ -37,3 +36,9 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/_build/html/

# Run tests
- name: Run Tests
run: |
cd tests
pytest test_tree.py
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ dependencies = ["bottle", "brotli", "numpy", "scipy"]
"Homepage" = "http://etetoolkit.org"

[project.optional-dependencies]
test = ["pytest>=6.0"]
treeview = ["pyqt6"]
test = ["pytest>=6.0"]
doc = ["sphinx"]

0 comments on commit e19dbf0

Please sign in to comment.