Skip to content

Commit

Permalink
Add python version matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed May 2, 2024
1 parent 11b0c9b commit bec8c95
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ jobs:
# - windows-latest
- ubuntu-latest
python-version:
# - '3.7'
# - '3.8'
# - '3.9'
# - '3.10'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
# - 'pypy-3.8'
# - 'pypy-3.9'
# - 'pypy-3.10'
- 'pypy-3.8'
- 'pypy-3.9'
- 'pypy-3.10'
# exclude:
# # No older Pythons on arm64 macos-latest
# - python-version: '3.7'
Expand Down Expand Up @@ -77,4 +76,7 @@ jobs:

- name: Run tests
run: tox -e py

- name: Run smoke tests
run: ./smoke-tests.sh
# vim:set et sts=2:
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ classifiers =
# Development Status :: 5 - Production/Stable
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Expand All @@ -47,7 +50,7 @@ py_modules = duct
package_dir =
=src
include_package_data = True
python_requires = >= 3.11
python_requires = >= 3.8

[options.entry_points]
console_scripts =
Expand Down
1 change: 1 addition & 0 deletions run-tests.sh → smoke-tests.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Smoketests
rm -rf .duct/*
duct --report-interval 2 --sample-interval 0.5 ./test_script.py -- --duration 6 --cpu-load 50000 --memory-size 500
find .duct/ -name '*.json' -exec sh -c 'echo "File: $1)"; cat "$1" | jq' _ {} \;
15 changes: 8 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist = lint,typing,py37,py38,py39,py310,py311,py312,pypy3
# envlist = lint,typing,py37,py38,py39,py310,py311,py312,pypy3
envlist = lint,py37,py38,py39,py310,py311,py312,pypy3
skip_missing_interpreters = True
isolated_build = True
minversion = 3.3.0
Expand All @@ -25,12 +26,12 @@ deps =
commands =
flake8 src test

[testenv:typing]
deps =
mypy
{[testenv]deps}
commands =
mypy src test
# [testenv:typing]
# deps =
# mypy
# {[testenv]deps}
# commands =
# mypy src test

[pytest]
# addopts = --cov=datalad_installer --no-cov-on-fail
Expand Down

0 comments on commit bec8c95

Please sign in to comment.