]> git.phdru.name Git - sqlconvert.git/commitdiff
CI(GHActions): Install all Python and PyPy versions from `conda-forge`
authorOleg Broytman <phd@phdru.name>
Sat, 15 Jul 2023 18:16:09 +0000 (21:16 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 15 Jul 2023 18:16:09 +0000 (21:16 +0300)
.github/workflows/run-tests.yaml
devscripts/requirements/requirements.txt
docs/news.rst

index 7d51773842c92f83dd279c51209d69ecabcd234b..c7b03324ee57eb42ed1a7b4eba8a0f64776d157a 100644 (file)
@@ -4,6 +4,8 @@ on: [push, pull_request]
 
 jobs:
   run-tests:
+    env:
+      not_in_conda: "[]"
 
     strategy:
       matrix:
@@ -37,12 +39,13 @@ jobs:
       - uses: actions/checkout@v2
       - uses: s-weigand/setup-conda@v1
         with:
+          conda-channels: conda-forge
           python-version: ${{ matrix.python-version }}
-        if: ${{ runner.os == 'Linux' && matrix.python-version != '3.11' }}
+        if: ${{ !contains(fromJSON(env.not_in_conda), matrix.python-version) }}
       - uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
-        if: ${{ runner.os != 'Linux' || matrix.python-version == '3.11' }}
+        if: ${{ contains(fromJSON(env.not_in_conda), matrix.python-version) }}
       - name: Cache pip
         uses: actions/cache@v3
         with:
@@ -53,9 +56,10 @@ jobs:
       - name: Install dependencies
         run: |
           python --version
+          python -m ensurepip
           python -m pip install --upgrade pip setuptools wheel
           pip --version
-          pip install --upgrade virtualenv "tox < 4"
+          pip install --upgrade virtualenv "tox >= 3.15, < 4"
       - name: Set TOXENV
         run: |
           import os, sys
index abe3d944ad92404eba46bb869f69722dcde87511..08b0cd3e6a5a600fb78a69b7b05dfb93ecd5b78d 100644 (file)
@@ -1,5 +1,3 @@
---install-option=-O2
-
 sqlparse
 SQLObject>=2.2.1; python_version >= '2.7' and python_version < '3.0'
 SQLObject>=3.0.0; python_version >= '3.4'
index a5573488dbb15d2caeafb799999511245c24fbd6..4f15f881068ac5c3dbc9958a92a77793c3043e1b 100644 (file)
@@ -6,6 +6,8 @@ Version 0.3.1 (in development)
 
 * Python 3.11.
 
+* CI(GHActions): Install all Python and PyPy versions from ``conda-forge``.
+
 Version 0.3.0 (2021-09-24)
 --------------------------