diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-09-22 19:33:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-22 10:33:01 -0700 |
commit | 5c10c299231e24d1f2b91da5618465aedd93cb16 (patch) | |
tree | b30759ed48e33b40099d92c0f031a060eed9ee08 /.github | |
parent | daf95227bf9e8c5262439bac33baca7280404d5d (diff) | |
download | spack-5c10c299231e24d1f2b91da5618465aedd93cb16.tar.gz spack-5c10c299231e24d1f2b91da5618465aedd93cb16.tar.bz2 spack-5c10c299231e24d1f2b91da5618465aedd93cb16.tar.xz spack-5c10c299231e24d1f2b91da5618465aedd93cb16.zip |
Pin the version of tools used in CI, have dependabot manage their version (#40066)
Diffstat (limited to '.github')
-rw-r--r-- | .github/dependabot.yml | 5 | ||||
-rw-r--r-- | .github/workflows/style/requirements.txt | 7 | ||||
-rw-r--r-- | .github/workflows/valid-style.yml | 15 |
3 files changed, 20 insertions, 7 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 13572e9542..a5b42ffcf7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,3 +10,8 @@ updates: directory: "/lib/spack/docs" schedule: interval: "daily" + # Requirements to run style checks + - package-ecosystem: "pip" + directory: "/.github/workflows/style" + schedule: + interval: "daily" diff --git a/.github/workflows/style/requirements.txt b/.github/workflows/style/requirements.txt new file mode 100644 index 0000000000..73b3620723 --- /dev/null +++ b/.github/workflows/style/requirements.txt @@ -0,0 +1,7 @@ +black==23.1.0 +clingo==5.6.2 +flake8==6.1.0 +isort==5.12.0 +mypy==1.5.0 +types-six==1.16.21.9 +vermin==1.5.2 diff --git a/.github/workflows/valid-style.yml b/.github/workflows/valid-style.yml index a5f0275492..dc713d6641 100644 --- a/.github/workflows/valid-style.yml +++ b/.github/workflows/valid-style.yml @@ -18,15 +18,15 @@ jobs: validate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # @v2 - - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # @v2 + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 with: python-version: '3.11' cache: 'pip' - name: Install Python Packages run: | - pip install --upgrade pip - pip install --upgrade vermin + pip install --upgrade pip setuptools + pip install -r .github/workflows/style/requirements.txt - name: vermin (Spack's Core) run: vermin --backport importlib --backport argparse --violations --backport typing -t=3.6- -vvv lib/spack/spack/ lib/spack/llnl/ bin/ - name: vermin (Repositories) @@ -35,16 +35,17 @@ jobs: style: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # @v2 + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac with: fetch-depth: 0 - - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # @v2 + - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 with: python-version: '3.11' cache: 'pip' - name: Install Python packages run: | - python3 -m pip install --upgrade pip setuptools types-six black==23.1.0 mypy isort clingo flake8 + pip install --upgrade pip setuptools + pip install -r .github/workflows/style/requirements.txt - name: Setup git configuration run: | # Need this for the git tests to succeed. |