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:
jobs:
lint-clang-format:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
make lint-clang-format
- uses: actions/checkout@v4
- run: sudo apt update
- run: sudo apt install clang-format
- run: make lint-clang-format
......@@ -7,13 +7,13 @@ on:
jobs:
lint-cpplint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
- run: |
pip install cpplint
make lint-cpplint
cache: pip
- run: pip install -r requirements.txt
- run: make lint-cpplint
......@@ -7,13 +7,13 @@ on:
jobs:
lint-python:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
- run: |
pip install pylint
make lint-python
cache: pip
- run: pip install -r requirements.txt
- run: make lint-python
......@@ -7,13 +7,13 @@ on:
jobs:
pre-commit:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
- run: |
pip install yapf isort
- uses: pre-commit/action@v3.0.0
cache: pip
- run: pip install -r requirements.txt
- uses: pre-commit/action@v3.0.1
......@@ -7,13 +7,13 @@ on:
jobs:
typecheck-python:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
- run: |
pip install pytype
make typecheck-python
cache: pip
- run: pip install -r requirements.txt
- run: make typecheck-python
......@@ -13,7 +13,7 @@ repos:
entry: make format-yapf
pass_filenames: false
- repo: https://github.com/PyCQA/docformatter
rev: v1.4
rev: v1.7.5
hooks:
- id: docformatter
args:
......@@ -24,7 +24,7 @@ repos:
--pre-summary-newline,
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.6.0
hooks:
- id: double-quote-string-fixer
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