]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Tox: also test with pytz installed (#974)
authorAarni Koskela <akx@iki.fi>
Tue, 28 Feb 2023 07:40:35 +0000 (09:40 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Feb 2023 07:40:35 +0000 (09:40 +0200)
* Tox: also test with pytz installed
* Tox: return to tox-gh-actions (which now supports Tox 4)

.github/workflows/test.yml
tox.ini

index e87f23e5f041145326d155d21b360696d3f19249..a35a1b4f3ee24f18c2eec8132a7069b13f0e299b 100644 (file)
@@ -40,7 +40,7 @@ jobs:
     - name: Install dependencies
       run: |
         python -m pip install --upgrade pip setuptools wheel
-        python -m pip install 'tox~=4.0' 'tox-gh~=1.0'
+        python -m pip install 'tox~=4.0' 'tox-gh-actions~=3.0'
     - name: Run test via Tox
       run: tox --skip-missing-interpreters
       env:
diff --git a/tox.ini b/tox.ini
index 551d201158e2296308b15b27fafe25b7e000b4bd..1156fecc67f73ebaa25ef26d1b7d7bccbd7c515b 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -2,6 +2,7 @@
 envlist =
     py{37,38,39,310,311}
     pypy3
+    py{37,38}-pytz
 
 [testenv]
 deps =
@@ -10,6 +11,7 @@ deps =
     freezegun==0.3.12
     backports.zoneinfo;python_version<"3.9"
     tzdata;sys_platform == 'win32'
+    pytz: pytz
 allowlist_externals = make
 commands = make clean-cldr test
 setenv =
@@ -19,11 +21,11 @@ passenv =
     PYTEST_*
     PYTHON_*
 
-[gh]
+[gh-actions]
 python =
-    pypy3 = pypy3
-    3.7 = py37
-    3.8 = py38
-    3.9 = py39
-    3.10 = py310
-    3.11 = py311
+    pypy3: pypy3
+    3.7: py37
+    3.8: py38
+    3.9: py39
+    3.10: py310
+    3.11: py311