-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1bfc0d
commit 5c548e5
Showing
1 changed file
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,30 +11,46 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
python-version: 3.11 | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental || false }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.9, "3.10"] | ||
os: [ubuntu-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
# Only test the latest major release of Sphinx because otherwise we need to | ||
# keep multiple versions of regression tests on file and this creates lots of | ||
# noise in the tests. | ||
sphinx: ["~=5.0","~=6.0","~=7.0"] | ||
include: | ||
- os: windows-latest | ||
python-version: 3.x | ||
# Windows pulling in dependencies fails | ||
experimental: true | ||
- os: macos-latest | ||
python-version: 3.x | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} and Sphinx ${{ matrix.sphinx }} | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: "pyproject.toml" | ||
|
||
- name: Install dependencies | ||
- name: Install dependencies with Sphinx ${{ matrix.sphinx }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[test] | ||
python -m pip install --upgrade "sphinx${{matrix.sphinx}}" -e .[test] --pre | ||
- name: Run pytest | ||
run: > | ||
pytest --durations=10 --cov=quantecon_book_theme --cov-report=xml --cov-report=term-missing | ||
|
5c548e5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://653f01ab20505e7a310323f5--hungry-lovelace-7d0512.netlify.app