Skip to content

Commit

Permalink
Expand the github action testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LecrisUT committed Jun 18, 2023
1 parent 6b18799 commit ae5fef6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: continuous-integration

on:
push:
branches: [master]
branches: [main]
tags:
- 'v*'
pull_request:
Expand All @@ -12,19 +12,21 @@ jobs:
docs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
sphinx: [ "~=4.0", "~=5.0", "~=6.0", "~=7.0" ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install sphinx-thebe with sphinx ${{ matrix.sphinx }}
run: |
python -m pip install --upgrade pip
pip install -e .[sphinx,testing]
pip install --upgrade pip
pip install --upgrade "Sphinx${{ matrix.sphinx }}" -e .[testing]
- name: Run tests
run: |
pytest

0 comments on commit ae5fef6

Please sign in to comment.