Skip to content

Commit 2f46b5a

Browse files
authored
Add support for Python 3.12. (#434)
1 parent b234ff8 commit 2f46b5a

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,24 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
30-
python-version: ['3.8', '3.9', '3.10', '3.11']
30+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
3131

3232
steps:
3333
- uses: actions/checkout@v4
34-
- uses: mamba-org/setup-micromamba@v1
34+
- uses: actions/setup-python@v4
3535
with:
36-
environment-name: gha-testing
37-
condarc: |
38-
channels:
39-
- nodefaults
40-
- conda-forge
41-
create-args: >-
42-
python=${{ matrix.python-version }}
43-
mamba
44-
tox-conda
45-
cache-environment: true
36+
python-version: ${{ matrix.python-version }}
37+
cache: pip
38+
allow-prereleases: true
39+
- run: pip install tox
40+
41+
- if: matrix.os == 'ubunut-latest'
42+
run: |
43+
sudo apt-get update
44+
sudo apt-get install graphviz graphviz-dev
45+
46+
- if: matrix.os == 'macos-latest'
47+
run: brew install graphviz
4648

4749
# Unit, integration, and end-to-end tests.
4850

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[tox]
2-
envlist = pytest, sphinx
2+
envlist = pytest
33

44
[testenv]
55
usedevelop = true
6+
platform =
7+
linux: linux
8+
macos: darwin
9+
windows: win32
610

711
[testenv:pytest]
8-
conda_channels =
9-
conda-forge
10-
nodefaults
11-
conda_deps =
12+
deps =
1213
# pytest
1314
pytest
1415
pytest-cov
@@ -27,9 +28,8 @@ conda_deps =
2728
tomli >=1.0.0
2829

2930
# Optional and test dependencies
30-
graphviz
3131
pexpect
32-
pygraphviz
32+
linux, macos: pygraphviz
3333

3434
commands =
3535
pytest {posargs}

0 commit comments

Comments
 (0)