Skip to content

Commit

Permalink
Bump black from 24.3.0 to 24.4.2, fix coverage upload, update dependa…
Browse files Browse the repository at this point in the history
…bot (#83)

* Bump black from 24.3.0 to 24.4.2

Bumps [black](https://github.com/psf/black) from 24.3.0 to 24.4.2.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@24.3.0...24.4.2)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update .pre-commit-config.yaml

* Update Tests.yml

* Update Tests.yml

* Update dependabot.yml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alasdair Gray <[email protected]>
  • Loading branch information
dependabot[bot] and A-CGray authored Apr 29, 2024
1 parent a0e40a0 commit 7c09126
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
14 changes: 10 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
registries: "*" # Give dependabot access to secrets so that codecov uploads work

updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
interval: "daily"
groups:
python-packages:
patterns:
- "*"
- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "weekly"
interval: "daily"
groups:
github-actions:
patterns:
- "*"
20 changes: 8 additions & 12 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: "3.9"
- python-version: "3.10"
- python-version: "3.11"
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -32,15 +29,14 @@ jobs:
run: testflo -n 1 -v .

- name: Generate coverage report
if: ${{ matrix.python-version == 3.10}}
if: ${{ matrix.python-version == 3.12}}
run: |
export NUMBA_DISABLE_JIT=1
testflo -n 1 -v --coverage --coverpkg FEMpy .
coverage xml
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == 3.10}}
uses: codecov/codecov-action@v4
export NUMBA_DISABLE_JIT=1
testflo -n 1 -v --coverage --coverpkg FEMpy .
coverage xml
- name: Upload coverage reports to Codecov
if: ${{ matrix.python-version == 3.12}}
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/psf/black
rev: 24.3.0
rev: 24.4.2
hooks:
- id: black
language_version: python3
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"mkdocstrings[python]",
"pytkdocs[numpy-style]",
],
"dev": ["parameterized", "testflo", "black==24.3.0", "flake8==7.0.0", "pre-commit"],
"dev": ["parameterized", "testflo", "black==24.4.2", "flake8==7.0.0", "pre-commit"],
},
classifiers=[
"Operating System :: OS Independent",
Expand Down

0 comments on commit 7c09126

Please sign in to comment.