Skip to content

Commit 240cc3c

Browse files
Update test.yml
1 parent 04143a8 commit 240cc3c

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Test Workflow
2+
23
on:
34
push:
45
branches:
@@ -42,14 +43,12 @@ jobs:
4243
- name: Check if Backend Test Files Exist
4344
id: check_backend_tests
4445
run: |
45-
4646
if [ -z "$(find src/ContentProcessorAPI/app/tests -type f -name 'test_*.py')" ]; then
4747
echo "No backend test files found, skipping backend tests."
4848
echo "skip_backend_tests=true" >> $GITHUB_ENV
4949
else
5050
echo "Backend test files found, running tests."
5151
echo "skip_backend_tests=false" >> $GITHUB_ENV
52-
fi
5352
5453
- name: Run Backend Tests with Coverage
5554
if: env.skip_backend_tests == 'false'
@@ -59,16 +58,15 @@ jobs:
5958
6059
- name: Skip Backend Tests
6160
if: env.skip_backend_tests == 'true'
62-
run: |
63-
echo "Skipping backend tests because no test files were found."
61+
run: echo "Skipping backend tests because no test files were found."
6462

6563
# frontend_tests:
6664
# runs-on: ubuntu-latest
67-
65+
#
6866
# steps:
6967
# - name: Checkout code
7068
# uses: actions/checkout@v3
71-
69+
#
7270
# - name: Set up Node.js
7371
# uses: actions/setup-node@v3
7472
# with:

0 commit comments

Comments
 (0)