Skip to content

Commit d2133ca

Browse files
committed
workflows
1 parent 6aef544 commit d2133ca

File tree

4 files changed

+36
-11
lines changed

4 files changed

+36
-11
lines changed

.env

-1
This file was deleted.

.github/workflows/ci.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "ci"
1+
name: "CI"
22

33
on:
44
- push
@@ -10,14 +10,15 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
os: [ ubuntu-latest, windows-latest, macos-latest ]
13+
os: [ ubuntu-latest ]
1414
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
1515

1616
# Steps represent a sequence of tasks that will be executed as part of the job
1717
steps:
18-
- name: Checkout [${{ github.repository }}]
19-
uses: actions/checkout@v4
18+
- name: "Build the virtual environment for ${{ github.repository }}"
19+
uses: cvxgrp/.github/actions/uv/[email protected]
2020

21-
- uses: cvxgrp/.github/actions/uv/test@v2.0.8
21+
- uses: cvxgrp/.github/actions/test@v2.1.0
2222
with:
2323
python-version: ${{ matrix.python-version }}
24+
tests-folder: src/tests

Makefile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.DEFAULT_GOAL := help
2+
3+
.PHONY: venv install fmt clean help test
4+
5+
venv:
6+
curl -LsSf https://astral.sh/uv/install.sh | sh
7+
uv venv --python '3.12'
8+
9+
install: venv ## Install dependencies and setup environment
10+
uv pip install --upgrade pip
11+
uv sync --dev --frozen
12+
13+
fmt: venv ## Format and lint code
14+
uv pip install pre-commit
15+
uv run pre-commit install
16+
uv run pre-commit run --all-files
17+
18+
clean: ## Clean build artifacts and stale branches
19+
git clean -X -d -f
20+
git branch -v | grep "\[gone\]" | cut -f 3 -d ' ' | xargs git branch -D
21+
22+
test: install ## Run tests
23+
uv pip install pytest
24+
uv run pytest src/tests
25+
26+
help: ## Show this help message
27+
@echo "Usage: make [target]"
28+
@echo ""
29+
@echo "Targets:"
30+
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)

taskfile.yml

-5
This file was deleted.

0 commit comments

Comments
 (0)