-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump pre-commit from 3.8.0 to 4.0.1 (#160)
* Bump pre-commit from 3.8.0 to 4.0.1 Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.8.0 to 4.0.1. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v3.8.0...v4.0.1) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix linter --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yevhenii Semendiak <[email protected]>
- Loading branch information
1 parent
fbe9210
commit 31bbc44
Showing
5 changed files
with
140 additions
and
101 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
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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
on: | ||
workflow_call: | ||
outputs: | ||
version: | ||
description: Version | ||
value: ${{ jobs.lint.outputs.version }} | ||
|
||
jobs: | ||
lint: | ||
name: Linter | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Cache Python and its deps | ||
uses: actions/cache@v4 | ||
with: | ||
key: ${{ runner.os }}-python-3.11-${{ hashFiles('requirements/*.txt') }} | ||
path: ${{ env.pythonLocation }} | ||
|
||
- name: Cache pre-commit hooks | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit-python-3.11-${{ hashFiles('.pre-commit-config.yaml') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
make setup | ||
- name: Run linters | ||
run: | | ||
echo Linting ${{ github.event.pull_request.head.sha || github.sha }} | ||
make lint | ||
- name: Save the package version | ||
id: version | ||
run: | | ||
echo "version=$(python setup.py --version)" >> $GITHUB_OUTPUT | ||
test: | ||
name: Run test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Cache Python and its deps | ||
uses: actions/cache@v4 | ||
with: | ||
key: ${{ runner.os }}-python-3.11-${{ hashFiles('requirements/*.txt') }} | ||
path: ${{ env.pythonLocation }} | ||
|
||
- name: Cache pre-commit hooks | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit-python-3.11-${{ hashFiles('.pre-commit-config.yaml') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
make setup | ||
- name: Configure Neu.ro CLI | ||
env: | ||
NEURO_TOKEN: ${{ secrets.COOKIECUTTER_TEST_E2E_TOKEN }} | ||
NEURO_STAGING_URL: ${{ secrets.NEURO_STAGING_URL }} | ||
run: | | ||
apolo config login-with-token ${{ env.NEURO_TOKEN }} ${{ env.NEURO_STAGING_URL }} | ||
apolo config switch-cluster onprem-poc | ||
- name: Run tests | ||
env: | ||
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }} | ||
run: | | ||
make test | ||
check: | ||
name: Check | ||
needs: | ||
- lint | ||
- test | ||
runs-on: ubuntu-latest | ||
if: always() | ||
steps: | ||
- name: Decide whether the needed jobs succeeded or failed | ||
uses: re-actors/alls-green@release/v1 | ||
with: | ||
jobs: ${{ toJSON(needs) }} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.9.19 | ||
3.11.6 |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-r python-base.txt | ||
|
||
mypy==1.11.2 | ||
pre-commit==3.8.0 | ||
pre-commit==4.0.1 | ||
pytest==8.3.2 | ||
pytest-asyncio==0.24.0 | ||
towncrier==24.8.0 |
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