Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge main back into #156

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions .github/dependabot.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"automerge": true,
"lockFileMaintenance": {
"enabled": true,
"schedule": [
"on friday before 3pm"
]
},
"pre-commit": {
"enabled": true,
"schedule": [
"on the first day of the month before 6am"
],
"packageRules": [
{
"groupName": "pre-commit hooks",
"groupSlug": "pre-commit",
"labels": [
"pre-commit",
"dependencies"
],
"matchDepTypes": ["repository"]
}
]
},
"labels": [
"renovate"
]
}
10 changes: 5 additions & 5 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/marimo@v2.0.6
- uses: cvxgrp/.github/actions/uv/marimo@v2.0.8

sphinx:
runs-on: "ubuntu-latest"
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/sphinx@v2.0.6
- uses: cvxgrp/.github/actions/uv/sphinx@v2.0.13

test:
runs-on: "ubuntu-latest"
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/coverage@v2.0.6
- uses: cvxgrp/.github/actions/uv/coverage@v2.0.8

jupyter:
runs-on: "ubuntu-latest"
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/jupyter@v2.0.6
- uses: cvxgrp/.github/actions/uv/jupyter@v2.0.8

book:
runs-on: "ubuntu-latest"
Expand All @@ -47,4 +47,4 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/book@v2.0.6
- uses: cvxgrp/.github/actions/book@v2.0.8
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/test@v2.0.6
- uses: cvxgrp/.github/actions/uv/test@v2.0.8
with:
python-version: ${{ matrix.python-version }}
14 changes: 12 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/coverage@v2.0.6
- uses: cvxgrp/.github/actions/uv/coverage@v2.0.8

- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
Expand All @@ -24,4 +24,14 @@ jobs:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: cvxgrp/.github/actions/uv/deptry@v2.0.6
- uses: cvxgrp/.github/actions/uv/deptry@v2.0.8

pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: pre-commit/action@v3.0.1
with:
extra_args: '--verbose --all-files'
36 changes: 8 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: Bump version and publish

on:
workflow_run:
workflows: [ "CI" ]
types: [ completed ]
workflow_dispatch:
#workflow_run:
# workflows: [ "CI" ]
# types: [ completed ]

jobs:
tag:
permissions:
contents: write

if: >
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'main'
#if: >
# github.event_name == 'workflow_dispatch' ||
# (github.event.workflow_run.conclusion == 'success' &&
# github.event.workflow_run.head_branch == 'main')

runs-on: ubuntu-latest

Expand All @@ -24,25 +26,3 @@ jobs:
uses: cvxgrp/.github/actions/uv/tag@v2.0.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: tag
runs-on: ubuntu-latest
environment: release

permissions:
contents: read
# This permission is required for trusted publishing.
id-token: write

steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ repos:
- id: check-yaml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.9.2'
rev: 'v0.9.3'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
# Run the formatter
- id: ruff-format

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
rev: v0.44.0
hooks:
- id: markdownlint

Expand Down
1 change: 0 additions & 1 deletion .python-version

This file was deleted.