Skip to content

Commit

Permalink
ci: test on python 3.8-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Aug 16, 2024
1 parent b202c62 commit 8d3d06e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions microbench/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
psutil = None
try:
import conda
import conda.testing.conda_cli
import conda.cli.python_api
except ImportError:
conda = None
try:
Expand Down Expand Up @@ -277,9 +277,9 @@ def capture_conda_packages(self, bm_data):
# Use subprocess
pkg_list = subprocess.check_output(['conda', 'list']).decode('utf8')
else:
# Use conda API
pkg_list, stderr, ret_code = conda.testing.conda_cli.run_command(
conda.testing.conda_cli.Commands.LIST)
# Use conda Python API
pkg_list, stderr, ret_code = conda.cli.python_api.run_command(
conda.cli.python_api.Commands.LIST)

if ret_code != 0 or stderr:
raise RuntimeError('Error running conda list: {}'.format(
Expand Down

0 comments on commit 8d3d06e

Please sign in to comment.