Skip to content

Commit

Permalink
Create tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abxh authored Apr 9, 2024
1 parent b6f96af commit f14388d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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())"

0 comments on commit f14388d

Please sign in to comment.