-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: updates from learn-scientific-python
- Loading branch information
Showing
5 changed files
with
37 additions
and
48 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 |
---|---|---|
|
@@ -7,4 +7,7 @@ updates: | |
interval: "monthly" | ||
commit-message: | ||
prefix: "chore" | ||
include: | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" |
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 |
---|---|---|
|
@@ -16,37 +16,24 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
# Many color libraries just need this to be set to any value, but at least | ||
# one distinguishes color depth, where "3" -> "256-bit color". | ||
FORCE_COLOR: 3 | ||
|
||
# Use bash by default in all jobs | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
|
||
jobs: | ||
# run pre-commit which includes many formatting and linting tools | ||
pre-commit: | ||
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --hook-stage manual --all-files | ||
- name: Run PyLint | ||
run: pipx run nox -s pylint -- --output-format=github | ||
|
||
# Run tests and upload to codecov | ||
test: | ||
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} | ||
runs-on: ${{ matrix.runs-on }} | ||
if: | | ||
${{!startsWith(github.event.head_commit.message, 'docs:') }} || | ||
${{!startsWith(github.event.head_commit.message, 'style:') }} | ||
needs: [pre-commit] | ||
strategy: | ||
# Otherwise, the workflow would stop if a single job fails. We want to | ||
# run all of them to catch failures in different combinations. | ||
|
@@ -55,7 +42,6 @@ jobs: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
runs-on: [ubuntu-latest, macos-latest, windows-latest] | ||
env: | ||
FORCE_COLOR: 3 | ||
NUMBA_DISABLE_JIT: "1" | ||
timeout-minutes: 30 | ||
steps: | ||
|
@@ -98,3 +84,5 @@ jobs: | |
uses: codecov/[email protected] | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
|
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
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