Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit 5fbdfb1

Browse files
burningcostclaude
andcommitted
Add GitHub Actions CI workflow and test badge
Python 3.10/3.12 matrix on ubuntu-latest. dev extras include cvxpy for the stochastic optimiser tests. 121 tests in suite. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9fdf3a4 commit 5fbdfb1

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
branches: [master, main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.12"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -e ".[dev]"
25+
- name: Run tests
26+
run: pytest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# rate-optimiser
2+
[![Tests](https://github.com/burning-cost/rate-optimiser/actions/workflows/tests.yml/badge.svg)](https://github.com/burning-cost/rate-optimiser/actions/workflows/tests.yml)
23

34
![Python](https://img.shields.io/badge/python-3.10%2B-blue) ![License: MIT](https://img.shields.io/badge/license-MIT-green) ![PyPI](https://img.shields.io/pypi/v/rate-optimiser)
45

0 commit comments

Comments
 (0)