From 0d5f99fb31872e5a858bca0be6c0eb89df9fc118 Mon Sep 17 00:00:00 2001 From: William Blum Date: Mon, 28 Apr 2025 05:06:55 +0000 Subject: [PATCH 1/3] Update to python 3.10 --- .github/workflows/ci.yml | 6 +++--- README.md | 2 +- cyberbattle/agents/baseline/run.py | 2 +- env.yml | 2 +- notebooks/run_benchmark.sh | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07010dd..b38a9fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.9] + python-version: [3.10] steps: - uses: actions/checkout@v3 with: @@ -33,7 +33,7 @@ jobs: key: pip-"${{ runner.os }}"-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements.dev.txt') }}-${{ hashFiles('setup.py') }} restore-keys: pip-"${{ runner.os }}" - path: ${{ env.pythonver.pythonLocation }}/lib/python3.9/site-packages + path: ${{ env.pythonver.pythonLocation }}/lib/python3.10/site-packages - name: Pull typing stubs from cache uses: actions/cache@v3 @@ -46,7 +46,7 @@ jobs: - uses: conda-incubator/setup-miniconda@v2 with: - python-version: 3.9 + python-version: 3.10 miniconda-version: "latest" activate-environment: cybersim auto-activate-base: false diff --git a/README.md b/README.md index b777dc5..035a38e 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ To run your environment within a docker container, we recommend running `docker` This method is not maintained anymore, please prefer instead running under a WSL subsystem Linux environment. -But if you insist you want to start by installing [Python 3.9](https://www.python.org/downloads/windows/) then in a Powershell prompt run the `./init.ps1` script. +But if you insist you want to start by installing [Python 3.10](https://www.python.org/downloads/windows/) then in a Powershell prompt run the `./init.ps1` script. ## Getting started quickly using Docker diff --git a/cyberbattle/agents/baseline/run.py b/cyberbattle/agents/baseline/run.py index 8055132..d7aeade 100755 --- a/cyberbattle/agents/baseline/run.py +++ b/cyberbattle/agents/baseline/run.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3.9 +#!/usr/bin/python3.10 # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. diff --git a/env.yml b/env.yml index 8090d55..2d7bb6b 100644 --- a/env.yml +++ b/env.yml @@ -3,7 +3,7 @@ channels: - plotly - conda-forge dependencies: - - python=3.9 + - python=3.10 - pyright=1.1.374 - nodejs - nb_conda_kernels=2.3.1 diff --git a/notebooks/run_benchmark.sh b/notebooks/run_benchmark.sh index 7cf0847..0f12944 100755 --- a/notebooks/run_benchmark.sh +++ b/notebooks/run_benchmark.sh @@ -1,5 +1,5 @@ -#!/usr/bin/python3.9 +#!/usr/bin/python3.10 # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. From 546074aa813fd129b2bd0371888de28a44728e72 Mon Sep 17 00:00:00 2001 From: William Blum Date: Mon, 28 Apr 2025 05:09:32 +0000 Subject: [PATCH 2/3] Fix formatting of python-version in CI configuration --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b38a9fe..eaa05d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.10] + python-version: ['3.10'] steps: - uses: actions/checkout@v3 with: From 004d914b7c3e3208469421fb04c43b17357c17a8 Mon Sep 17 00:00:00 2001 From: William Blum Date: Mon, 28 Apr 2025 05:20:09 +0000 Subject: [PATCH 3/3] . --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eaa05d6..10b1484 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: - uses: conda-incubator/setup-miniconda@v2 with: - python-version: 3.10 + python-version: '3.10' miniconda-version: "latest" activate-environment: cybersim auto-activate-base: false