Skip to content

Commit

Permalink
Test with Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Feb 17, 2024
1 parent 5c82dc5 commit 80f5b4f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:
python-version: 3.9
- uses: ./
with:
python-versions: "3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, pypy-2.7, pypy-3.7, pypy-3.8, pypy-3.9-v7.3.9"
python-versions: "3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, pypy-2.7, pypy-3.7, pypy-3.8, pypy-3.9-v7.3.9"
- run: nox --non-interactive --error-on-missing-interpreter --session github_actions_all_tests
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
python-versions:
description: "comma-separated list of python versions to install"
required: false
default: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12, pypy-3.7, pypy-3.8, pypy-3.9"
default: "3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, pypy-3.7, pypy-3.8, pypy-3.9"
branding:
icon: package
color: blue
Expand Down
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
nox.options.sessions.append("conda_tests")


@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"])
def tests(session: nox.Session) -> None:
"""Run test suite with pytest."""
session.create_tmp() # Fixes permission errors on Windows
Expand Down Expand Up @@ -138,6 +138,7 @@ def _check_python_version(session: nox.Session) -> None:
"3.10",
"3.11",
"3.12",
"3.13",
"pypy3.7",
"pypy3.8",
"pypy3.9",
Expand All @@ -158,6 +159,7 @@ def github_actions_default_tests(session: nox.Session) -> None:
"3.10",
"3.11",
"3.12",
"3.13",
"pypy3.7",
"pypy3.8",
"pypy3.9",
Expand Down
8 changes: 4 additions & 4 deletions tests/test_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,16 @@ def test_condaenv_create_with_params(make_conda):

@pytest.mark.skipif(not HAS_CONDA, reason="Missing conda command.")
def test_condaenv_create_interpreter(make_conda):
venv, dir_ = make_conda(interpreter="3.7")
venv, dir_ = make_conda(interpreter="3.8")
venv.create()
if IS_WINDOWS:
assert dir_.join("python.exe").check()
assert dir_.join("python37.dll").check()
assert dir_.join("python37.pdb").check()
assert dir_.join("python38.dll").check()
assert dir_.join("python38.pdb").check()
assert not dir_.join("python37.exe").check()
else:
assert dir_.join("bin", "python").check()
assert dir_.join("bin", "python3.7").check()
assert dir_.join("bin", "python3.8").check()


@pytest.mark.skipif(not HAS_CONDA, reason="Missing conda command.")
Expand Down

0 comments on commit 80f5b4f

Please sign in to comment.