From beb47bcb92b91b22aa7613d9e980a11c12a9a10a Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 23 Jan 2024 10:13:05 +1100 Subject: [PATCH 1/2] review and update versions --- .github/workflows/cache.yml | 8 ++++---- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/linkcheck.yml | 6 +++--- .github/workflows/publish.yml | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 26ed9d2..be24fce 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: iterative/setup-cml@v1 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: Deploy runner on EC2 @@ -30,7 +30,7 @@ jobs: image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c options: --gpus all steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: Check nvidia drivers @@ -42,13 +42,13 @@ jobs: run: | jb build lectures --path-output ./ -W --keep-going - name: Upload Execution Reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports path: _build/html/reports - name: Upload "_build" folder (cache) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-cache path: _build \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eef986f..2354c6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: iterative/setup-cml@v1 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: Deploy runner on EC2 @@ -27,7 +27,7 @@ jobs: image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c options: --gpus all steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} # Check nvidia drivers @@ -55,7 +55,7 @@ jobs: mkdir -p _build/html/_notebooks cp -u _build/jupyter/*.ipynb _build/html/_notebooks - name: Upload Execution Reports (Download Notebooks) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports @@ -67,7 +67,7 @@ jobs: mkdir -p _build/html/_pdf cp -u _build/latex/*.pdf _build/html/_pdf - name: Upload Execution Reports (LaTeX) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports @@ -78,13 +78,13 @@ jobs: run: | jb build lectures --path-output ./ -n -W --keep-going - name: Upload Execution Reports (HTML) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports path: _build/html/reports - name: Preview Deploy to Netlify - uses: nwtgck/actions-netlify@v1.1 + uses: nwtgck/actions-netlify@v2 with: publish-dir: '_build/html/' production-branch: main diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index bf5dd35..00c886a 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -16,7 +16,7 @@ jobs: python-version: ["3.11"] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Anaconda uses: conda-incubator/setup-miniconda@v2 with: @@ -27,7 +27,7 @@ jobs: environment-file: environment.yml activate-environment: quantecon - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: workflow: cache.yml branch: main @@ -37,7 +37,7 @@ jobs: shell: bash -l {0} run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck - name: Upload Link Checker Reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: linkcheck-reports diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f139e2c..691dc1b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: iterative/setup-cml@v1 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: Deploy runner on EC2 @@ -32,7 +32,7 @@ jobs: options: --gpus all steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Git (required to commit notebooks) shell: bash -l {0} run: apt-get install -y git @@ -48,7 +48,7 @@ jobs: run: pip list # Download Build Cache from cache.yml - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: workflow: cache.yml branch: main @@ -88,7 +88,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: _build/html/ - cname: stats.quantecon.org + # cname: stats.quantecon.org - name: Prepare lecture-stats.notebooks sync shell: bash -l {0} run: | From 00c8bfa8d9fc2d93a6236b03f5a9b9c1ffd6513b Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 23 Jan 2024 10:13:25 +1100 Subject: [PATCH 2/2] remove file -- not required --- lectures/_config.ymla | 121 ------------------------------------------ 1 file changed, 121 deletions(-) delete mode 100644 lectures/_config.ymla diff --git a/lectures/_config.ymla b/lectures/_config.ymla deleted file mode 100644 index a400128..0000000 --- a/lectures/_config.ymla +++ /dev/null @@ -1,121 +0,0 @@ -title: Statistics for Computational Economics -author: Thomas J. Sargent & John Stachurski -logo: _static/qe-logo-large.png -description: This website presents a set of lectures on advanced quantitative economic modeling, designed and written by Thomas J. Sargent and John Stachurski. - -parse: - myst_enable_extensions: - - amsmath - - colon_fence - - deflist - - dollarmath - - html_admonition - - html_image - - linkify - - replacements - - smartquotes - - substitution - -execute: - execute_notebooks: "cache" - timeout: 7200 # 2 Hours - -bibtex_bibfiles: - - _static/quant-econ.bib - -html: - baseurl: https://python-advanced.quantecon.org/ - -latex: - latex_documents: - targetname: quantecon-python-advanced.tex - -sphinx: - extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinx_exercise, sphinx_togglebutton] - config: - nb_mime_priority_overrides: [ - # HTML - ['html', 'application/vnd.jupyter.widget-view+json', 10], - ['html', 'application/javascript', 20], - ['html', 'text/html', 30], - ['html', 'text/latex', 40], - ['html', 'image/svg+xml', 50], - ['html', 'image/png', 60], - ['html', 'image/jpeg', 70], - ['html', 'text/markdown', 80], - ['html', 'text/plain', 90], - # Jupyter Notebooks - ['jupyter', 'application/vnd.jupyter.widget-view+json', 10], - ['jupyter', 'application/javascript', 20], - ['jupyter', 'text/html', 30], - ['jupyter', 'text/latex', 40], - ['jupyter', 'image/svg+xml', 50], - ['jupyter', 'image/png', 60], - ['jupyter', 'image/jpeg', 70], - ['jupyter', 'text/markdown', 80], - ['jupyter', 'text/plain', 90], - # LaTeX - ['latex', 'text/latex', 10], - ['latex', 'application/pdf', 20], - ['latex', 'image/png', 30], - ['latex', 'image/jpeg', 40], - ['latex', 'text/markdown', 50], - ['latex', 'text/plain', 60], - ['latex', 'text/html', 70], - # Link Checker - ['linkcheck', 'text/plain', 10], - ] - html_favicon: _static/lectures-favicon.ico - html_theme: quantecon_book_theme - html_static_path: ['_static'] - html_theme_options: - header_organisation_url: https://quantecon.org - header_organisation: QuantEcon - repository_url: https://github.com/QuantEcon/lecture-python-advanced.myst - nb_repository_url: https://github.com/QuantEcon/lecture-python-advanced.notebooks - twitter: quantecon - twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png - og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png - description: This website presents a set of lectures on advanced quantitative economic modeling, designed and written by Thomas J. Sargent and John Stachurski. - keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski - analytics: - google_analytics_id: G-KZLV7PM9LL - launch_buttons: - colab_url : https://colab.research.google.com - mathjax3_config: - tex: - macros: - "argmax": "arg\\,max" - "argmin": "arg\\,min" - "col": "col" - "Span": "span" - "epsilon": "\\varepsilon" - "EE": "\\mathbb{E}" - "PP": "\\mathbb{P}" - "RR": "\\mathbb{R}" - "NN": "\\mathbb{N}" - "ZZ": "\\mathbb{Z}" - "aA": "\\mathcal{A}" - "bB": "\\mathcal{B}" - "cC": "\\mathcal{C}" - "dD": "\\mathcal{D}" - "eE": "\\mathcal{E}" - "fF": "\\mathcal{F}" - "gG": "\\mathcal{G}" - "hH": "\\mathcal{H}" - mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js - rediraffe_redirects: - index_toc.md: intro.md - tojupyter_static_file_path: ["source/_static", "_static"] - tojupyter_target_html: true - tojupyter_urlpath: "https://python-advanced.quantecon.org/" - tojupyter_image_urlpath: "https://python-advanced.quantecon.org/_static/" - tojupyter_lang_synonyms: ["ipython", "ipython3", "python"] - tojupyter_kernels: - python3: - kernelspec: - display_name: "Python" - language: python3 - name: python3 - file_extension: ".py" - tojupyter_images_markdown: true