Skip to content

Commit

Permalink
ci/cd jobs to test new uv based setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Dec 7, 2024
1 parent 974de31 commit 0c423f8
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "ci"

on:
- push

jobs:
test:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
env:
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434

strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ '3.10', '3.11', '3.12', '3.13' ]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/test@main
with:
python-version: ${{ matrix.python-version }}
31 changes: 31 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: pre-commit

on:
push:

jobs:
#pre-commit:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: pre-commit/action@v3.0.1
# with:
# extra_args: '--verbose --all-files'

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/coverage@main
with:
source-folder: 'pypfopt'



deptry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/deptry@main
with:
source-folder: 'pypfopt'

0 comments on commit 0c423f8

Please sign in to comment.