Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: upgrade anaconda and ga workflow versions #239

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: 3.9
python-version: 3.11
environment-file: environment.yml
activate-environment: lecture-datascience
- name: Build HTML
shell: bash -l {0}
run: |
jb build lectures --path-output ./
- name: Upload "_build" folder (cache)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build-cache
path: _build
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: 3.9
python-version: 3.11
environment-file: environment.yml
activate-environment: lecture-datascience
- name: Display Conda Environment Versions
Expand All @@ -22,7 +22,7 @@ jobs:
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3
with:
workflow: cache.yml
branch: main
Expand All @@ -33,7 +33,7 @@ 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
Expand All @@ -50,7 +50,7 @@ jobs:
mkdir -p _build/html/assets/data
cp -a lectures/_data/. _build/html/assets/data/
- name: Preview Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1
uses: nwtgck/actions-netlify@v2
with:
publish-dir: '_build/html/'
production-branch: master
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: 3.9
python-version: 3.11
environment-file: environment.yml
activate-environment: lecture-datascience
- name: Display Conda Environment Versions
Expand All @@ -40,7 +40,7 @@ jobs:
run: |
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
zip -r download-notebooks.zip _build/jupyter
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: download-notebooks
path: download-notebooks.zip
Expand All @@ -60,7 +60,7 @@ 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
Expand All @@ -72,7 +72,7 @@ jobs:
publish_dir: _build/html/
cname: datascience.quantecon.org
- name: Upload "_build" folder (cache)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build-publish
path: _build
Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- default
dependencies:
- python=3.9
- anaconda=2022.10
- anaconda=2024.02
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the pip install fails when specifying 2024.02 so maybe we can revert this to update the GitHub actions infrastructure

- pip
- pip:
# Build Requirements
Expand All @@ -23,7 +23,7 @@ dependencies:
- arviz==0.13.0
# Datascience Requirements
- joblib == 1.2.0
- interpolation == 2.2.4
- interpolation == 2.2.6
- networkx == 3.0
- fiona == 1.9.2
- geopandas == 0.12.2
Expand Down
Loading