-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from romanc/romanc/gha-lint
[QOL] Streamline linting workflow
- Loading branch information
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,18 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Pace repository | ||
uses: actions/[email protected] | ||
with: | ||
submodules: 'recursive' | ||
- name: Step Python 3.11.7 | ||
uses: actions/[email protected] | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11.7' | ||
- name: Install OpenMPI for gt4py | ||
run: | | ||
sudo apt-get install libopenmpi-dev | ||
- name: Install Python packages | ||
python-version: '3.11' | ||
|
||
- name: Install pre-commit | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install .[develop] | ||
pip install pre-commit | ||
- name: Run lint via pre-commit | ||
run: | | ||
pre-commit run --all-files |