Skip to content

Commit 8f62694

Browse files
authored
Lower python version requirements and tox test against lowest version (#59)
* Lower requirements of Python version to 3.7 and test with tox on lowest version
1 parent 4593693 commit 8f62694

File tree

5 files changed

+72
-41
lines changed

5 files changed

+72
-41
lines changed

.github/workflows/ci_vfxnaming.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,35 @@ on: [pull_request]
55
jobs:
66
build:
77

8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
environment:
1010
name: coverage
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ["3.10"]
14+
python-version: ["3.7","3.10"]
1515

1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
1919
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
cache: 'pipenv'
2322
- name: Install dependencies
2423
run: |
2524
python -m pip install --upgrade pip
26-
python -m pip install pipenv tox
27-
pipenv sync --dev
25+
python -m pip install tox
2826
- name: Lint with Ruff
27+
if: matrix.python-version == '3.11'
2928
run: |
30-
pipenv run ruff check --output-format=github .
29+
tox -e ruffci
3130
continue-on-error: true
32-
- name: Run tests with tox
31+
- name: Run tests with Python 3.7
32+
if: matrix.python-version == '3.7'
33+
run: |
34+
tox -e py37ci
35+
- name: Run tests with Python 3.10
36+
if: matrix.python-version == '3.10'
3337
run: |
3438
tox -e py310ci
3539
- name: Coveralls

Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ twine = "*"
1515
build = "*"
1616
wheel = "*"
1717
rstcheck = "*"
18+
19+
[packages]
1820
vfxnaming = {editable=true, path="."}
1921

2022
[requires]

Pipfile.lock

Lines changed: 38 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "vfxnaming"
7-
version = "1.5.8-beta"
7+
version = "1.5.9-beta"
88
authors = [
99
{ name="Chris Granados", email="info@chrisgranados.com" },
1010
]
1111
description = "VFX Naming Conventions Framework"
1212
readme = "README.rst"
13-
requires-python = ">=3.10"
13+
requires-python = ">=3.7"
1414
classifiers = [
1515
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
17-
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.7",
1818
"License :: OSI Approved :: MIT License",
1919
"Operating System :: OS Independent",
2020
]

tox.ini

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[tox]
2-
envlist = py310, py310ci, docs
2+
envlist = py37, py37ci, py310, py310ci, docs
33
package = vfxnaming
44

55
[testenv]
66
basepython = py310: python3.10
77
py310ci: python3.10
8+
py37: python3.7
9+
py37ci: python3.7
810
docs: python3.10
911
usedevelop = True
1012

@@ -15,6 +17,21 @@ commands =
1517
sphinx-build -c "{tox_root}{/}docs{/}source" -d "{tox_root}{/}docs{/}build{/}doctrees" "docs{/}source" "{tox_root}{/}docs{/}build{/}html" --color -b html
1618
python -c 'docs_url=r"{tox_root}{/}docs{/}build{/}html{/}index.html".replace("\\", "/").replace("//", "/"); print(f"Docs available here file:///{docs_url}")'
1719

20+
[testenv:py37]
21+
deps = pytest
22+
pytest-cov
23+
pytest-datafiles
24+
commands=
25+
pip list
26+
pytest -c tox.ini --cov-report term-missing --cov-report html:cov_py37_html --cov=vfxnaming tests/
27+
28+
[testenv:py37ci]
29+
deps = pytest
30+
pytest-cov
31+
pytest-datafiles
32+
coveralls
33+
commands= pytest -c tox.ini --cov-report lcov --cov=vfxnaming tests/
34+
1835
[testenv:py310]
1936
deps = pytest
2037
pytest-cov

0 commit comments

Comments
 (0)