Skip to content

Commit 4db1498

Browse files
authored
bump Python from 3.7.13 to 3.10.12 (current colab version)
1 parent ee00b64 commit 4db1498

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/notebooks.yml

+10-12
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ jobs:
1717
- name: Clone the reference repository
1818
uses: actions/checkout@v2
1919

20-
- name: Set up Python 3.7.12
20+
- name: Set up Python 3.10.12
2121
uses: actions/setup-python@v2
2222
with:
2323
# Change this based on the python version in Google colab
24-
# actions/setup-python@v2 does not have 3.7.13
25-
python-version: '3.7.12'
24+
python-version: '3.10.12'
2625

2726
- name: Install dependencies
2827
run: |
@@ -39,12 +38,11 @@ jobs:
3938
- name: Clone the reference repository
4039
uses: actions/checkout@v2
4140

42-
- name: Set up Python 3.7.12
41+
- name: Set up Python 3.10.12
4342
uses: actions/setup-python@v2
4443
with:
4544
# Change this based on the python version in Google colab
46-
# actions/setup-python@v2 does not have 3.7.13
47-
python-version: '3.7.12'
45+
python-version: '3.10.12'
4846

4947
- name: Install dependencies
5048
run: |
@@ -72,7 +70,7 @@ jobs:
7270
run: |
7371
git ls-files 'notebooks/book**.ipynb' -z | xargs -0 -n1 -I{} -- git log -1 --format='%at {}' {} | sort -r
7472
75-
- name: Setup Python 3.7.13 (current colab version)
73+
- name: Setup Python 3.10.12 (current colab version)
7674
shell: bash
7775
run: |
7876
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --output miniconda.sh
@@ -82,8 +80,8 @@ jobs:
8280
echo "export PATH=\"\$HOME/miniconda3/bin:\$PATH\"" >> /root/.bashrc
8381
echo "source \"\$HOME/miniconda3/bin/activate\"" >> /root/.bashrc
8482
source /root/.bashrc
85-
conda create -n py37 python=3.7.13 -y
86-
echo "conda activate py37" >> /root/.bashrc
83+
conda create -n py310 python=3.10.12 -y
84+
echo "conda activate py310" >> /root/.bashrc
8785
8886
- name: Install requirements
8987
shell: bash
@@ -128,7 +126,7 @@ jobs:
128126
with:
129127
fetch-depth: 0
130128

131-
- name: Setup Python 3.7.13 (current colab version)
129+
- name: Setup Python 3.10.12 (current colab version)
132130
shell: bash
133131
run: |
134132
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --output miniconda.sh
@@ -138,8 +136,8 @@ jobs:
138136
echo "export PATH=\"\$HOME/miniconda3/bin:\$PATH\"" >> /root/.bashrc
139137
echo "source \"\$HOME/miniconda3/bin/activate\"" >> /root/.bashrc
140138
source /root/.bashrc
141-
conda create -n py37 python=3.7.13 -y
142-
echo "conda activate py37" >> /root/.bashrc
139+
conda create -n py310 python=3.10.12 -y
140+
echo "conda activate py310" >> /root/.bashrc
143141
144142
- name: Install requirements
145143
shell: bash

0 commit comments

Comments
 (0)