Skip to content

Commit

Permalink
Revert "Integrate sphinx into general test.yml file"
Browse files Browse the repository at this point in the history
This reverts commit 5789014.
  • Loading branch information
hagenw committed Jul 26, 2024
1 parent 5789014 commit 2fc7a4c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
env:
python-version: '3.10'
strategy:
matrix:
tasks: [ 'sphinx' ]
sphinx-version: [ '5.3.0', '6.2.1', '7.*' ]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.python-version }}

- name: Set up Sphinx ${{ matrix.sphinx-version }}
run: |
python -V
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r docs/requirements.txt
pip install "sphinx==${{ matrix.sphinx-version }}"
- name: Tests
run: |
python -m sphinx docs/ build/html -b html -D html_theme=alabaster
15 changes: 0 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ jobs:
python-version: '3.9'
- os: ubuntu-latest
python-version: '3.11'
# Other sphinx versions
- os: ubuntu-latest
python-version: '3.10'
sphinx: 'sphinx==5.3.0'
- os: ubuntu-latest
python-version: '3.10'
sphinx: 'sphinx==6.2.1'
- os: ubuntu-latest
python-version: '3.10'
sphinx: 'sphinx==7.*'

steps:
- uses: actions/checkout@v4
Expand All @@ -53,10 +43,5 @@ jobs:
- name: Install tests requirements
run: pip install -r tests/requirements.txt

- name: Install requested sphinx version
run: |
pip install "${{ matrix.sphinx }}"
if: matrix.sphinx

- name: Test with pytest
run: python -m pytest

0 comments on commit 2fc7a4c

Please sign in to comment.