Skip to content

Commit 2784c64

Browse files
committed
ci: GitHub Actions running pytest on push/PR; live test badge
1 parent 8dedf58 commit 2784c64

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install -U pip
19+
pip install torch --index-url https://download.pytorch.org/whl/cpu
20+
pip install scikit-learn
21+
pip install -e ".[dev]"
22+
- name: Run tests
23+
run: pytest -q

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**read papers → find a gap → run real experiments → reflect → write & self-review**
88

9-
[![tests](https://img.shields.io/badge/tests-76%20passing-brightgreen)](#-quickstart)
9+
[![tests](https://github.com/renee-jia/scholar-loop/actions/workflows/ci.yml/badge.svg)](https://github.com/renee-jia/scholar-loop/actions/workflows/ci.yml)
1010
[![python](https://img.shields.io/badge/python-3.10%2B-blue)](#-quickstart)
1111
[![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
1212
[![status](https://img.shields.io/badge/status-research%20preview-orange)](#-status)

0 commit comments

Comments
 (0)