Skip to content

Commit

Permalink
.github/workflow/ports_unix: Update virtual env. to CPython 3.9.
Browse files Browse the repository at this point in the history
ports/windows/.appveyor: Update Windows virtual env. to 3.9.
New Python features depend on more recent Python.
  • Loading branch information
jbbjarnason committed Apr 3, 2022
1 parent 26f32fb commit a0bf6da
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ports_qemu-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install packages
run: source tools/ci.sh && ci_qemu_arm_setup
- name: Build and run test suite
Expand Down
50 changes: 47 additions & 3 deletions .github/workflows/ports_unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build
run: source tools/ci.sh && ci_unix_standard_build
- name: Run main test suite
Expand All @@ -53,6 +56,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build
run: source tools/ci.sh && ci_unix_dev_build
- name: Run main test suite
Expand All @@ -65,8 +71,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install packages
run: source tools/ci.sh && ci_unix_coverage_setup
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools pyelftools
- name: Print environment version
run: source tools/ci.sh && ci_unix_coverage_print_env
- name: Build
run: source tools/ci.sh && ci_unix_coverage_build
- name: Run main test suite
Expand All @@ -92,6 +105,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools pyelftools
- name: Install packages
run: source tools/ci.sh && ci_unix_32bit_setup
- name: Build
Expand All @@ -110,6 +130,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install packages
run: source tools/ci.sh && ci_unix_32bit_setup
- name: Build
Expand All @@ -124,6 +147,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build
run: source tools/ci.sh && ci_unix_float_build
- name: Run main test suite
Expand All @@ -136,6 +162,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install packages
run: source tools/ci.sh && ci_unix_clang_setup
- name: Build
Expand All @@ -150,6 +179,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install packages
run: source tools/ci.sh && ci_unix_clang_setup
- name: Build
Expand All @@ -164,6 +196,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build
run: source tools/ci.sh && ci_unix_settrace_build
- name: Run main test suite
Expand All @@ -176,6 +211,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build
run: source tools/ci.sh && ci_unix_settrace_stackless_build
- name: Run main test suite
Expand All @@ -190,7 +228,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.9'
- name: Build
run: source tools/ci.sh && ci_unix_macos_build
- name: Run tests
Expand All @@ -203,6 +241,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install packages
run: source tools/ci.sh && ci_unix_qemu_mips_setup
- name: Build
Expand All @@ -217,6 +258,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install packages
run: source tools/ci.sh && ci_unix_qemu_arm_setup
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions ports/windows/.appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
image: Visual Studio 2017
image: Visual Studio 2019
clone_depth: 1
skip_tags: true

environment:
# Python version used
MICROPY_CPYTHON3: c:/python38/python.exe
MICROPY_CPYTHON3: c:/python39/python.exe
# The variants.
matrix:
- PyVariant: dev
Expand Down
6 changes: 1 addition & 5 deletions tools/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ function ci_unix_dev_run_tests {
ci_unix_run_tests_helper VARIANT=dev
}

function ci_unix_coverage_setup {
sudo pip3 install setuptools
sudo pip3 install pyelftools
function ci_unix_coverage_print_env {
gcc --version
python3 --version
}
Expand All @@ -459,8 +457,6 @@ function ci_unix_32bit_setup {
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gcc-multilib g++-multilib libffi-dev:i386
sudo pip3 install setuptools
sudo pip3 install pyelftools
gcc --version
python2 --version
python3 --version
Expand Down

0 comments on commit a0bf6da

Please sign in to comment.