summaryrefslogtreecommitdiff
path: root/.github/workflows/minimum_python_versions.yaml
blob: a6ab5dfa4059bd0aa19dbf993ae55d26a93e0d0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: python version check

on:
  push:
    branches:
      - develop
      - releases/**
  pull_request:
    branches:
      - develop
      - releases/**
jobs:
  validate:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup Python
      uses: actions/setup-python@v1
      with:
        python-version: 3.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