From 76aa9ba562f76336fff7988f30b4995c9b8b8b66 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Thu, 14 Mar 2024 14:43:57 +1100 Subject: [PATCH] [TEST] Add github workflow Signed-off-by: Olivier Mehani --- .../workflows/push-pr-main-test-lint-unit.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/push-pr-main-test-lint-unit.yml diff --git a/.github/workflows/push-pr-main-test-lint-unit.yml b/.github/workflows/push-pr-main-test-lint-unit.yml new file mode 100644 index 0000000..f759037 --- /dev/null +++ b/.github/workflows/push-pr-main-test-lint-unit.yml @@ -0,0 +1,32 @@ +##### +# Pull Request workflow triggers on pushes to, or pull requests against, main +# Jobs performed: +# 1. Lint +# 2. Unit test +# 3. Integration tests +##### +name: Tests +on: + pull_request: + branches: + - master + push: + branches: + # Every push on those branches + - master + +jobs: + run_tests: + runs-on: ubuntu-latest + name: Lint & Tests + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Run Lint Checks + run: make lint + - name: Run Python Tests + run: make test-unit + - name: Run Integration Test + run: make test-integration-env