Save response info in storage #20162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Style | |
on: | |
push: | |
branches: | |
- main | |
- 'version-**' | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-style: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.11'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: | | |
setup.py | |
pyproject.toml | |
- name: Install ERT with style dependencies | |
run: | | |
pip install ".[style]" | |
- name: Clang Format | |
run: ./script/clang-format --check | |
- name: CMake Format | |
if: ${{ always() }} | |
run: ./script/cmake-format --check | |
- name: Add matching rule | |
run: echo ::add-matcher::.github/flake8-matcher.json | |
- name: Run ruff | |
if: ${{ always() }} | |
run: | | |
ruff check . | |
- name: Run black | |
if: ${{ always() }} | |
uses: psf/black@stable | |
- name: Run pylint | |
run: | | |
script/pylint |