Skip to content

Commit 4a32e70

Browse files
authored
Merge pull request #20 from ail-project/codex/add-github-action-for-tests
Add GitHub Actions test workflow
2 parents a7efeb8 + d65f1d0 commit 4a32e70

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/tests.yml

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

0 commit comments

Comments
 (0)