Skip to content

Commit cf3fbcc

Browse files
committed
new workflow that requires all tests to pass to merge
1 parent 5ba8f8f commit cf3fbcc

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run SpiceCode Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10' # Use a Python version compatible with your project
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install pytest typer
25+
# Note: Ideally, you should fix your requirements.txt and use:
26+
# pip install .
27+
# Or at least:
28+
# pip install -r requirements.txt
29+
# But due to the encoding and importlib issues observed,
30+
# installing specific dependencies needed for tests directly for now.
31+
32+
- name: Run tests
33+
run: |
34+
python -m pytest tests/analyze_all_langs/

0 commit comments

Comments
 (0)