Skip to content

Commit

Permalink
Update python version and sphinx version matrix (#20)
Browse files Browse the repository at this point in the history
* Update python version and sphinx version matrix

* Update actions

* Add fetch depth to fix not getting tag

* Sphinx 4 doesn't support Python >=3.10

* Add Python 3.10 Sphinx 4

* Use .* Sphinx versions as pyhton 3.10 support was fixed in 4.2
  • Loading branch information
sciencewhiz authored Oct 6, 2023
1 parent fd02899 commit e960e39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Black
Expand All @@ -25,26 +25,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', 'pypy3']
sphinx-version: ['4', '5']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.10']
sphinx-version: ['4.*', '5.*', '6.*', '7.*']
include:
- python-version: '3.10'
sphinx-version: '4.3'
- python-version: '3.10'
sphinx-version: '5'
- python-version: '3.6'
sphinx-version: '3'
- python-version: '3.7'
sphinx-version: '3'
- python-version: '3.6'
sphinx-version: '2'
- python-version: '3.7'
sphinx-version: '2'
name: "Test Extension - Python(${{ matrix.python-version }}), Sphinx(${{ matrix.sphinx-version }})"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -63,13 +57,13 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.8'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-e .
black
pytest==6.2.5
wheel==0.34.2
wheel==0.40.0

0 comments on commit e960e39

Please sign in to comment.