mirror of
https://github.com/fjosw/pyerrors.git
synced 2026-08-04 11:31:21 +02:00
[ci] Update action versions, add permissions and dependebot, speed up examples
This commit is contained in:
parent
8a39a951d1
commit
bbc5f7814e
7 changed files with 45 additions and 4 deletions
14
.github/dependabot.yml
vendored
Normal file
14
.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: monday
|
||||||
|
groups:
|
||||||
|
# Batch all action bumps into a single PR to keep the noise down.
|
||||||
|
actions:
|
||||||
|
patterns:
|
||||||
|
- "*"
|
||||||
|
commit-message:
|
||||||
|
prefix: "[ci]"
|
||||||
3
.github/workflows/binder.yml
vendored
3
.github/workflows/binder.yml
vendored
|
|
@ -4,6 +4,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Create-MyBinderOrg-Cache:
|
Create-MyBinderOrg-Cache:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
3
.github/workflows/docs.yml
vendored
3
.github/workflows/docs.yml
vendored
|
|
@ -5,6 +5,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write # pushes the rendered docs to the documentation branch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
17
.github/workflows/examples.yml
vendored
17
.github/workflows/examples.yml
vendored
|
|
@ -10,6 +10,9 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 1 * *'
|
- cron: '0 4 1 * *'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
examples:
|
examples:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
@ -30,14 +33,20 @@ jobs:
|
||||||
- name: uv
|
- name: uv
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: astral-sh/setup-uv@v5
|
||||||
|
|
||||||
- name: Install
|
- name: Install LaTeX
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super
|
sudo apt-get install -y --no-install-recommends \
|
||||||
|
dvipng texlive-latex-extra texlive-fonts-recommended cm-super
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
run: |
|
||||||
uv pip install wheel --system
|
uv pip install wheel --system
|
||||||
uv pip install . --system
|
uv pip install . --system
|
||||||
uv pip install pytest nbmake --system
|
uv pip install pytest pytest-xdist nbmake --system
|
||||||
uv pip install -U matplotlib!=3.7.0 --system # Exclude version 3.7.0 of matplotlib as this breaks local imports of style files.
|
uv pip install -U matplotlib!=3.7.0 --system # Exclude version 3.7.0 of matplotlib as this breaks local imports of style files.
|
||||||
|
|
||||||
|
# The notebooks are independent (only 07 writes to disk), so execute them in
|
||||||
|
# parallel instead of serially.
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest -vv --nbmake examples/*.ipynb
|
run: pytest -vv -n auto --nbmake examples/*.ipynb
|
||||||
|
|
|
||||||
3
.github/workflows/pytest.yml
vendored
3
.github/workflows/pytest.yml
vendored
|
|
@ -10,6 +10,9 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * 0'
|
- cron: '0 4 * * 0'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pytest:
|
pytest:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
|
||||||
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
|
@ -5,10 +5,15 @@ on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build sdist and wheel
|
name: Build sdist and wheel
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
name: Checkout repository
|
name: Checkout repository
|
||||||
|
|
|
||||||
4
.github/workflows/ruff.yml
vendored
4
.github/workflows/ruff.yml
vendored
|
|
@ -5,6 +5,10 @@ on:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ruff:
|
ruff:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue