Skip to content

Commit 25c9f51

Browse files
authored
Merge pull request #50 from CMU-313/translator-CI
feat: added CI pipeline for translator tests
2 parents 30a7734 + 8b42da2 commit 25c9f51

3 files changed

Lines changed: 44 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,6 @@ jobs:
8989
run: npm run coverage
9090

9191
- name: Test coverage
92-
uses: coverallsapp/github-action@v2
92+
uses: coverallsapp/github-action@v2
93+
94+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Translator tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
- develop
9+
pull_request:
10+
branches:
11+
- main
12+
- master
13+
- develop
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
translator-tests :
24+
name: python
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- uses: actions/checkout@v6
29+
30+
- name: Install uv
31+
uses: astral-sh/setup-uv@v7
32+
33+
- name: Install dependencies
34+
working-directory: ./translator
35+
run: uv sync
36+
37+
- name: Run tests
38+
working-directory: ./translator
39+
run: uv run pytest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ test.sh
7878
dump.rdb
7979
.archiver_shadow/
8080
.snapshots/
81+
82+
*.pyc

0 commit comments

Comments
 (0)