Skip to content

Commit 0e9d580

Browse files
authored
Merge pull request #130 from spicecode-cli/new-test-workflow
new workflow that requires all tests to pass to merge
2 parents 5ba8f8f + 3914456 commit 0e9d580

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 -e .
25+
pip install pytest typer numpy
26+
# Note: Ideally, you should fix your requirements.txt and use:
27+
# pip install .
28+
# Or at least:
29+
# pip install -r requirements.txt
30+
# But due to the encoding and importlib issues observed,
31+
# installing specific dependencies needed for tests directly for now.
32+
33+
- name: Run tests
34+
run: |
35+
python -m pytest tests/analyze/

requirements.txt

30 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)