Skip to content

Commit 9574667

Browse files
committed
chore: add workflow to run unit tests
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 3ee0c88 commit 9574667

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/docs-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-22.04
7+
runs-on: ubuntu-24.04
88

99
strategy:
1010
max-parallel: 4

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: run tests
2+
3+
on: [push, pull_request]
4+
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-24.04
9+
permissions:
10+
contents: read
11+
12+
strategy:
13+
max-parallel: 4
14+
matrix:
15+
python-version: ["3.10", "3.11"]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install dependencies
27+
run: make dev
28+
run: source venv/bin/activate
29+
30+
- name: Run tests
31+
run: make test

0 commit comments

Comments
 (0)