Skip to content

Commit

Permalink
fixing python test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yudi-G committed Jun 2, 2024
1 parent 8241396 commit 2173002
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/python-app-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,31 @@ permissions:
contents: read

jobs:
build:
check-tests:
runs-on: ubuntu-latest
outputs:
tests_exist: ${{ steps.check.outputs.tests_exist }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check for test files
id: check
run: |
if find . -type f -name "*.test.py" | grep -q .; then
echo "::set-output name=tests_exist::true"
else
echo "::set-output name=tests_exist::false"
fi


run-tests:

runs-on: ubuntu-latest
needs: check-tests
if: needs.check-tests.outputs.tests_exist == 'true'

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 2173002

Please sign in to comment.