From cf3fbcc7a08385ab1c076af91dea7a95368b9cad Mon Sep 17 00:00:00 2001 From: ManfredHair Date: Tue, 29 Apr 2025 19:45:23 -0300 Subject: [PATCH 1/3] new workflow that requires all tests to pass to merge --- .github/workflows/run_tests.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/run_tests.yml diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 0000000..e3f6b7c --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -0,0 +1,34 @@ +name: Run SpiceCode Tests + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' # Use a Python version compatible with your project + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest typer + # Note: Ideally, you should fix your requirements.txt and use: + # pip install . + # Or at least: + # pip install -r requirements.txt + # But due to the encoding and importlib issues observed, + # installing specific dependencies needed for tests directly for now. + + - name: Run tests + run: | + python -m pytest tests/analyze_all_langs/ \ No newline at end of file From e463a0f76a5f5ba0938ae4f1f4b3635403ebbdf1 Mon Sep 17 00:00:00 2001 From: ManfredHair Date: Tue, 29 Apr 2025 19:50:39 -0300 Subject: [PATCH 2/3] fixes to workflow --- .github/workflows/run_tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index e3f6b7c..51bee60 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -21,7 +21,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest typer + pip install -e . + pip install pytest typer numpy # Note: Ideally, you should fix your requirements.txt and use: # pip install . # Or at least: @@ -31,4 +32,4 @@ jobs: - name: Run tests run: | - python -m pytest tests/analyze_all_langs/ \ No newline at end of file + python -m pytest tests/analyze/ \ No newline at end of file From 3914456c161b09e8361ba8764a6718b6b8cd4771 Mon Sep 17 00:00:00 2001 From: ManfredHair Date: Tue, 29 Apr 2025 19:50:50 -0300 Subject: [PATCH 3/3] add numpy to requirements --- requirements.txt | Bin 298 -> 328 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/requirements.txt b/requirements.txt index 28be2e00e28d2ce201a582b2886986d5ac363fb2..0cc4198a3c6172efbe2064777ef103d6a97797e3 100644 GIT binary patch delta 38 scmZ3*bb@Jv7NZ<50~bRcLn%WpLjgl2gB^n{gCT<+gAs!XkThTb0GTcZUH||9 delta 7 OcmX@Xw2Eni79#))N&-><