From f5da4c71dcc3392e051ca578ac8035748b4a2445 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sat, 4 Mar 2023 21:08:12 +0100 Subject: [PATCH] Add GH action to run smoke test --- .github/workflows/smoke.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/smoke.yml diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml new file mode 100644 index 0000000..9475a7c --- /dev/null +++ b/.github/workflows/smoke.yml @@ -0,0 +1,30 @@ +name: Smoke test + +on: + push: + pull_request: + workflow_dispatch: # Allows you to run this workflow manually from the Actions tab + +jobs: + smoke: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" # caching pip dependencies + + - name: Install dependencies + run: | + pip install -r requirements.txt + + - name: Run smoke test + run: | + bash ./scripts/run_smoke_test.sh examples test_data