Skip to content

Commit 78196e6

Browse files
committed
[CI] Make PyTest look in the tests folder only
This avoids picking up the integration tests accidentally Signed-off-by: Stefan Marr <git@stefan-marr.de>
1 parent 2bfa0c8 commit 78196e6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
run: |
5353
export PYTHON=python
5454
export PYTHONPATH=src
55-
SOM_INTERP=AST pytest
56-
SOM_INTERP=BC pytest
55+
SOM_INTERP=AST pytest tests
56+
SOM_INTERP=BC pytest tests
5757
SOM_INTERP=AST ./som.sh -cp Smalltalk TestSuite/TestHarness.som
5858
SOM_INTERP=BC ./som.sh -cp Smalltalk TestSuite/TestHarness.som
5959
echo "[system exit: 0] value" | SOM_INTERP=AST ./som.sh -cp Smalltalk
@@ -63,7 +63,7 @@ jobs:
6363
if: matrix.id != 'basic'
6464
run: |
6565
export SOM_INTERP=${{ matrix.interp }}
66-
PYTHONPATH=$PYTHONPATH:.pypy:src pytest
66+
PYTHONPATH=$PYTHONPATH:.pypy:src pytest tests
6767
PYTHONPATH=$PYTHONPATH:.pypy ./som.sh -cp Smalltalk TestSuite/TestHarness.som
6868
PYTHONPATH=$PYTHONPATH:.pypy .pypy/rpython/bin/rpython --batch src/main_rpython.py
6969
./som-${{ matrix.id }}-interp -cp Smalltalk TestSuite/TestHarness.som

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ build-and-test-interpreters:
5656
- (cd Examples/Benchmarks/TestSuite && ./duplicate-tests.sh)
5757

5858
# Unit Tests
59-
- PYTHONPATH=src python3 -m pytest
59+
- PYTHONPATH=src python3 -m pytest tests
6060
- ./som.sh -cp Smalltalk TestSuite/TestHarness.som
6161

6262
# Interpreter
@@ -67,7 +67,7 @@ build-and-test-interpreters:
6767
- export SOM_INTERP=AST
6868

6969
# Unit Tests
70-
- PYTHONPATH=src python3 -m pytest
70+
- PYTHONPATH=src python3 -m pytest tests
7171
- ./som.sh -cp Smalltalk TestSuite/TestHarness.som
7272

7373
# Interpreter

0 commit comments

Comments
 (0)