From f14388dab2a8b5b61023e031143b101dee101936 Mon Sep 17 00:00:00 2001 From: abxh <83485102+abxh@users.noreply.github.com> Date: Tue, 9 Apr 2024 02:56:36 +0200 Subject: [PATCH] Create tests.yml --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..857ae385 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build-and-analyze: + runs-on: ubuntu-latest + + steps: + - name: Python Action + with: + token: ${{ secrets.GITHUB_SECRET }} + + - run: | + echo "Install required dependencies" + sudo apt-get update + sudo apt-get install python3 + + # Lastly use a `for` loop to run multiple instances of Python scripts. + # This way you can run one, or multiple python scripts. + + - run: | + echo "Run, Build Application using scripts" + python3 -c " + scripts = ['./tests/run_tests.py] + for script in scripts: + with open(script, 'r') as file: + exec(file.read())"