Skip to content

Commit a509053

Browse files
Merge pull request #8 from gambitproject/gh-actions
Add GitHub Actions workflow for tests
2 parents 52f9e78 + 714bd30 commit a509053

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.9", "3.13"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -e .[dev]
29+
30+
- name: Test with pytest
31+
run: |
32+
pytest tests/ -v --tb=short
33+
34+
- name: Test CLI command
35+
run: |
36+
draw_tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pip install -e .
1414

1515
## Requirements
1616

17-
- Python 3.7+ (tested on 3.13)
17+
- Python 3.9+ (tested on 3.13)
1818
- LaTeX with TikZ (for PDF/PNG generation)
1919
- (optional) ImageMagick or Ghostscript or Poppler (for PNG generation)
2020

0 commit comments

Comments
 (0)