summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-11-05 15:59:12 +0100
committerGitHub <noreply@github.com>2022-11-05 15:59:12 +0100
commit5558940ce6fee399155bd31be7f1c8c361691979 (patch)
tree9caf76796896087b0f1b127152996d9e891cd3fe /.github
parentc9fcb8aadc2ded5bcaa999f108f0c92213824ee2 (diff)
downloadspack-5558940ce6fee399155bd31be7f1c8c361691979.tar.gz
spack-5558940ce6fee399155bd31be7f1c8c361691979.tar.bz2
spack-5558940ce6fee399155bd31be7f1c8c361691979.tar.xz
spack-5558940ce6fee399155bd31be7f1c8c361691979.zip
Add support for Python 3.11 (#33505)
Argparse started raising ArgumentError exceptions when the same parser is added twice. Therefore, we perform the addition only if the parser is not there already Port match syntax to our unparser
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/audit.yaml2
-rw-r--r--.github/workflows/unit_tests.yaml15
-rw-r--r--.github/workflows/valid-style.yml6
3 files changed, 13 insertions, 10 deletions
diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml
index 5b463a3e0c..275abb2d53 100644
--- a/.github/workflows/audit.yaml
+++ b/.github/workflows/audit.yaml
@@ -25,7 +25,7 @@ jobs:
python-version: ${{inputs.python_version}}
- name: Install Python packages
run: |
- pip install --upgrade pip six setuptools pytest codecov 'coverage[toml]<=6.2'
+ pip install --upgrade pip six setuptools pytest codecov coverage[toml]
- name: Package audits (with coverage)
if: ${{ inputs.with_coverage == 'true' }}
run: |
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml
index 80b4593c23..6a21d166f8 100644
--- a/.github/workflows/unit_tests.yaml
+++ b/.github/workflows/unit_tests.yaml
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10']
+ python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
concretizer: ['clingo']
on_develop:
- ${{ github.ref == 'refs/heads/develop' }}
@@ -22,7 +22,7 @@ jobs:
- python-version: 2.7
concretizer: original
on_develop: ${{ github.ref == 'refs/heads/develop' }}
- - python-version: '3.10'
+ - python-version: '3.11'
concretizer: original
on_develop: ${{ github.ref == 'refs/heads/develop' }}
exclude:
@@ -35,6 +35,9 @@ jobs:
- python-version: '3.9'
concretizer: 'clingo'
on_develop: false
+ - python-version: '3.10'
+ concretizer: 'clingo'
+ on_develop: false
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # @v2
@@ -86,7 +89,7 @@ jobs:
SPACK_TEST_SOLVER: ${{ matrix.concretizer }}
SPACK_TEST_PARALLEL: 2
COVERAGE: true
- UNIT_TEST_COVERAGE: ${{ (matrix.python-version == '3.10') }}
+ UNIT_TEST_COVERAGE: ${{ (matrix.python-version == '3.11') }}
run: |
share/spack/qa/run-unit-tests
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
@@ -101,7 +104,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # @v2
with:
- python-version: '3.10'
+ python-version: '3.11'
- name: Install System packages
run: |
sudo apt-get -y update
@@ -109,7 +112,7 @@ jobs:
sudo apt-get install -y coreutils kcov csh zsh tcsh fish dash bash
- name: Install Python packages
run: |
- pip install --upgrade pip six setuptools pytest codecov coverage[toml]==6.2 pytest-xdist
+ pip install --upgrade pip six setuptools pytest codecov coverage[toml] pytest-xdist
- name: Setup git configuration
run: |
# Need this for the git tests to succeed.
@@ -158,7 +161,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # @v2
with:
- python-version: '3.10'
+ python-version: '3.11'
- name: Install System packages
run: |
sudo apt-get -y update
diff --git a/.github/workflows/valid-style.yml b/.github/workflows/valid-style.yml
index d91f6e958a..a82c786b44 100644
--- a/.github/workflows/valid-style.yml
+++ b/.github/workflows/valid-style.yml
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # @v2
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # @v2
with:
- python-version: '3.10'
+ python-version: '3.11'
cache: 'pip'
- name: Install Python Packages
run: |
@@ -40,7 +40,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # @v2
with:
- python-version: '3.10'
+ python-version: '3.11'
cache: 'pip'
- name: Install Python packages
run: |
@@ -57,4 +57,4 @@ jobs:
uses: ./.github/workflows/audit.yaml
with:
with_coverage: ${{ inputs.with_coverage }}
- python_version: '3.10'
+ python_version: '3.11'