diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2019-12-24 18:28:33 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-24 09:28:33 -0800 |
commit | d333e147214b513ef8d96e1987d3785a6feb5e1f (patch) | |
tree | 06daec56addba32f64ab17a2c513c1571e042abd /.github | |
parent | 1e2c9d960c1047822f57e48841c7c61c1964aed3 (diff) | |
download | spack-d333e147214b513ef8d96e1987d3785a6feb5e1f.tar.gz spack-d333e147214b513ef8d96e1987d3785a6feb5e1f.tar.bz2 spack-d333e147214b513ef8d96e1987d3785a6feb5e1f.tar.xz spack-d333e147214b513ef8d96e1987d3785a6feb5e1f.zip |
tests: check min required python version with vermin (#14289)
This commit removes the `python_version.py` unit test module
and the vendored dependencies `pyqver2.py` and `pyqver3.py`.
It substitutes them with an equivalent check done using
`vermin` that is run as a separate workflow via Github Actions.
This allows us to delete 2 vendored dependencies that are unmaintained
and substitutes them with a maintained tool.
Also, updates the list of vendored dependencies.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/minimum_python_versions.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/minimum_python_versions.yaml b/.github/workflows/minimum_python_versions.yaml new file mode 100644 index 0000000000..f0a5736849 --- /dev/null +++ b/.github/workflows/minimum_python_versions.yaml @@ -0,0 +1,30 @@ +name: Minimum Python Versions + +on: + push: + branches: + - master + - develop + pull_request: + branches: + - master + - develop +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 2.7 + - name: Install Python Packages + run: | + pip install --upgrade pip + pip install --upgrade vermin + - name: Minimum Version (Spack's Core) + run: vermin --backport argparse -t=2.6- -t=3.5- -v lib/spack/spack/ lib/spack/llnl/ bin/ + - name: Minimum Version (Repositories) + run: vermin --backport argparse -t=2.6- -t=3.5- -v var/spack/repos |