Merge pull request #2443 from davidhewitt/unpin-3.11

ci: unpin 3.11
This commit is contained in:
messense 2022-06-08 20:42:41 +08:00 committed by GitHub
commit 06c09fbb60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View File

@ -90,7 +90,7 @@ jobs:
"3.8", "3.8",
"3.9", "3.9",
"3.10", "3.10",
"3.11.0-beta.1", "3.11-dev",
"pypy-3.7", "pypy-3.7",
"pypy-3.8", "pypy-3.8",
"pypy-3.9" "pypy-3.9"
@ -346,8 +346,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
id: setup-python
with: with:
python-version: 3.11.0-beta.1 python-version: 3.11-dev
- name: Install Rust toolchain - name: Install Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -362,12 +363,12 @@ jobs:
with: with:
path: | path: |
.nox/emscripten .nox/emscripten
key: ${{ hashFiles('emscripten/*') }} - ${{ hashFiles('noxfile.py') }} key: ${{ hashFiles('emscripten/*') }} - ${{ hashFiles('noxfile.py') }} - ${{ steps.setup-python.outputs.python-path }}
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
with: with:
key: cargo-emscripten-wasm32 key: cargo-emscripten-wasm32
- name: Build - name: Build
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
run: nox -s build_emscripten run: nox -s build-emscripten
- name: Test - name: Test
run: nox -s test_emscripten run: nox -s test-emscripten

View File

@ -1,7 +1,8 @@
import re
import sys
import time import time
from glob import glob from glob import glob
from pathlib import Path from pathlib import Path
import re
import nox import nox
@ -139,7 +140,7 @@ class EmscriptenInfo:
self.builddir = rootdir / ".nox/emscripten" self.builddir = rootdir / ".nox/emscripten"
self.builddir.mkdir(exist_ok=True, parents=True) self.builddir.mkdir(exist_ok=True, parents=True)
self.pyversion = "3.11.0b1" self.pyversion = sys.version.split()[0]
self.pymajor, self.pyminor, self.pymicro = self.pyversion.split(".") self.pymajor, self.pyminor, self.pymicro = self.pyversion.split(".")
self.pymicro, self.pydev = re.match( self.pymicro, self.pydev = re.match(
"([0-9]*)([^0-9].*)?", self.pymicro "([0-9]*)([^0-9].*)?", self.pymicro
@ -151,7 +152,7 @@ class EmscriptenInfo:
self.pymajorminormicro = f"{self.pymajorminor}.{self.pymicro}" self.pymajorminormicro = f"{self.pymajorminor}.{self.pymicro}"
@nox.session(venv_backend="none") @nox.session(name="build-emscripten", venv_backend="none")
def build_emscripten(session: nox.Session): def build_emscripten(session: nox.Session):
info = EmscriptenInfo() info = EmscriptenInfo()
session.run( session.run(
@ -165,7 +166,7 @@ def build_emscripten(session: nox.Session):
) )
@nox.session(venv_backend="none") @nox.session(name="test-emscripten", venv_backend="none")
def test_emscripten(session: nox.Session): def test_emscripten(session: nox.Session):
info = EmscriptenInfo() info = EmscriptenInfo()