Commit 46f817dd authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

GitHub Actions: fix and update versions of all things involved

This includes adding a requirements.txt for the Python packages required for linting. In the future, additional packages that our orchestration framework requires also go in here.
parent 88475623
...@@ -7,8 +7,9 @@ on: ...@@ -7,8 +7,9 @@ on:
jobs: jobs:
lint-clang-format: lint-clang-format:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- run: | - run: sudo apt update
make lint-clang-format - run: sudo apt install clang-format
- run: make lint-clang-format
...@@ -7,13 +7,13 @@ on: ...@@ -7,13 +7,13 @@ on:
jobs: jobs:
lint-cpplint: lint-cpplint:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: '3.10'
architecture: 'x64' architecture: 'x64'
- run: | cache: pip
pip install cpplint - run: pip install -r requirements.txt
make lint-cpplint - run: make lint-cpplint
...@@ -7,13 +7,13 @@ on: ...@@ -7,13 +7,13 @@ on:
jobs: jobs:
lint-python: lint-python:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: '3.10'
architecture: 'x64' architecture: 'x64'
- run: | cache: pip
pip install pylint - run: pip install -r requirements.txt
make lint-python - run: make lint-python
...@@ -7,13 +7,13 @@ on: ...@@ -7,13 +7,13 @@ on:
jobs: jobs:
pre-commit: pre-commit:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: '3.10'
architecture: 'x64' architecture: 'x64'
- run: | cache: pip
pip install yapf isort - run: pip install -r requirements.txt
- uses: pre-commit/action@v3.0.0 - uses: pre-commit/action@v3.0.1
...@@ -7,13 +7,13 @@ on: ...@@ -7,13 +7,13 @@ on:
jobs: jobs:
typecheck-python: typecheck-python:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: '3.10'
architecture: 'x64' architecture: 'x64'
- run: | cache: pip
pip install pytype - run: pip install -r requirements.txt
make typecheck-python - run: make typecheck-python
...@@ -13,7 +13,7 @@ repos: ...@@ -13,7 +13,7 @@ repos:
entry: make format-yapf entry: make format-yapf
pass_filenames: false pass_filenames: false
- repo: https://github.com/PyCQA/docformatter - repo: https://github.com/PyCQA/docformatter
rev: v1.4 rev: v1.7.5
hooks: hooks:
- id: docformatter - id: docformatter
args: args:
...@@ -24,7 +24,7 @@ repos: ...@@ -24,7 +24,7 @@ repos:
--pre-summary-newline, --pre-summary-newline,
] ]
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 rev: v4.6.0
hooks: hooks:
- id: double-quote-string-fixer - id: double-quote-string-fixer
types: types:
......
pylint==3.2.0
cpplint==1.6.1
pre-commit==3.7.1
yapf==0.40.2
pytype==2024.4.11
isort==5.13.2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment