Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Feb 3, 2025
1 parent 6aef544 commit d2133ca
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 11 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "ci"
name: "CI"

on:
- push
Expand All @@ -10,14 +10,15 @@ jobs:

strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ ubuntu-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:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4
- name: "Build the virtual environment for ${{ github.repository }}"
uses: cvxgrp/.github/actions/uv/[email protected]

- uses: cvxgrp/.github/actions/uv/test@v2.0.8
- uses: cvxgrp/.github/actions/test@v2.1.0
with:
python-version: ${{ matrix.python-version }}
tests-folder: src/tests
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.DEFAULT_GOAL := help

.PHONY: venv install fmt clean help test

venv:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv --python '3.12'

install: venv ## Install dependencies and setup environment
uv pip install --upgrade pip
uv sync --dev --frozen

fmt: venv ## Format and lint code
uv pip install pre-commit
uv run pre-commit install
uv run pre-commit run --all-files

clean: ## Clean build artifacts and stale branches
git clean -X -d -f
git branch -v | grep "\[gone\]" | cut -f 3 -d ' ' | xargs git branch -D

test: install ## Run tests
uv pip install pytest
uv run pytest src/tests

help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
5 changes: 0 additions & 5 deletions taskfile.yml

This file was deleted.

0 comments on commit d2133ca

Please sign in to comment.