-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1115 from VWS-Python/separate-lint-build
Separate test and lint for CI simplicity
- Loading branch information
Showing
2 changed files
with
40 additions
and
12 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
|
||
name: CI | ||
name: Test | ||
|
||
on: | ||
push: | ||
|
@@ -27,14 +27,6 @@ jobs: | |
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
|
||
- name: "Lint" | ||
run: | | ||
uv run --extra=dev pre-commit run --all-files --hook-stage pre-commit --verbose | ||
uv run --extra=dev pre-commit run --all-files --hook-stage pre-push --verbose | ||
uv run --extra=dev pre-commit run --all-files --hook-stage manual --verbose | ||
env: | ||
UV_PYTHON: ${{ matrix.python-version }} | ||
|
||
- name: "Run tests" | ||
env: | ||
# See https://pytest-cov.readthedocs.io/en/latest/plugins.html for why we | ||
|
@@ -55,6 +47,3 @@ jobs: | |
with: | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- uses: pre-commit-ci/[email protected] | ||
if: always() |
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,39 @@ | ||
--- | ||
|
||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# Run at 1:00 every day | ||
- cron: '0 1 * * *' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
|
||
- name: "Lint" | ||
run: | | ||
uv run --extra=dev pre-commit run --all-files --hook-stage pre-commit --verbose | ||
uv run --extra=dev pre-commit run --all-files --hook-stage pre-push --verbose | ||
uv run --extra=dev pre-commit run --all-files --hook-stage manual --verbose | ||
env: | ||
UV_PYTHON: ${{ matrix.python-version }} | ||
|
||
- uses: pre-commit-ci/[email protected] | ||
if: always() |