-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: pre-commit fix and master->main (#249)
* pre-commit fix and master->main * remove old installs * update tox testing * update pytest pins * set python=310 due to npm * fix tests and update tox * update python and os x * sphinx-5 for now * remove os x testing
- Loading branch information
Showing
9 changed files
with
54 additions
and
72 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 |
---|---|---|
|
@@ -16,32 +16,14 @@ jobs: | |
auto-update-conda: true | ||
auto-activate-base: true | ||
miniconda-version: 'latest' | ||
python-version: "3.10" | ||
python-version: "3.11" | ||
environment-file: lecture-python-programming.myst/environment.yml | ||
activate-environment: lecture-python-programming | ||
- name: Install quantecon-book-theme | ||
shell: bash -l {0} | ||
run: | | ||
pip uninstall -y quantecon-book-theme | ||
python -m pip install . | ||
- name: Install sphinx-multitoc-numbering | ||
shell: bash -l {0} | ||
run: | | ||
git clone https://github.com/executablebooks/sphinx-multitoc-numbering.git | ||
cd sphinx-multitoc-numbering | ||
python setup.py install | ||
cd ../ && rm -rf sphinx-multitoc-numbering | ||
- name: Install sphinx-exercise | ||
shell: bash -l {0} | ||
run: | | ||
git clone https://github.com/executablebooks/sphinx-exercise.git | ||
cd sphinx-exercise | ||
python setup.py install | ||
cd ../ && rm -rf sphinx-exercise | ||
- name: Install Dependencies | ||
shell: bash -l {0} | ||
run: | | ||
pip install jupyter-book | ||
- name: Display Conda Environment Versions | ||
shell: bash -l {0} | ||
run: conda list | ||
|
@@ -57,7 +39,7 @@ jobs: | |
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: 'lecture-python-programming.myst/_build/html/' | ||
production-branch: master | ||
production-branch: main | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "Preview Deploy from GitHub Actions" | ||
env: | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: continuous-integration | |
|
||
on: | ||
push: | ||
branches: [master] | ||
branches: [main] | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
|
@@ -14,22 +14,19 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
python-version: "3.11" | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
python-version: ["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"] | ||
include: | ||
- os: macos-latest | ||
python-version: 3.x | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
@@ -51,7 +48,7 @@ jobs: | |
pytest --durations=10 --cov=quantecon_book_theme --cov-report=xml --cov-report=term-missing | ||
- name: Upload to Codecov | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 && github.repository == 'QuantEcon/quantecon-book-theme' && github.event_name == 'pull_request' | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11 && github.repository == 'QuantEcon/quantecon-book-theme' && github.event_name == 'pull_request' | ||
uses: codecov/[email protected] | ||
with: | ||
name: ebp-qbt-pytests-py3.7 | ||
|
@@ -70,7 +67,7 @@ jobs: | |
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.11" | ||
- name: Build package | ||
run: | | ||
python -m pip install -U pip build | ||
|
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
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
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
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
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
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
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
2bed94d
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://66df84c34e1878b6b91cda55--hungry-lovelace-7d0512.netlify.app