From cd87ade24c2b4a45132a266e1f65b95880c2d0cd Mon Sep 17 00:00:00 2001 From: Amila Date: Thu, 30 May 2024 15:44:19 -0500 Subject: [PATCH] Create only-run-tests.yaml --- .github/workflows/only-run-tests.yaml | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/only-run-tests.yaml diff --git a/.github/workflows/only-run-tests.yaml b/.github/workflows/only-run-tests.yaml new file mode 100644 index 0000000..f27f29d --- /dev/null +++ b/.github/workflows/only-run-tests.yaml @@ -0,0 +1,34 @@ +name: only-run-tests-workflow +on: + push: + branches: + - dev + +jobs: + run-tests: + runs-on: [ubuntu] + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run tests + env: + HPCC_USERNAME: ${{ secrets.HPCC_USERNAME }} + HPCC_PASSWORD: ${{ secrets.HPCC_PASSWORD }} + DUMMY_USERNAME: ${{ secrets.DUMMY_USERNAME }} + DUMMY_PASSWORD: ${{ secrets.DUMMY_PASSWORD }} + HPCC_HOST: ${{ secrets.HPCC_HOST }} + HPCC_PORT: ${{ secrets.HPCC_PORT }} + DUMMY_HOST: ${{ secrets.DUMMY_HOST }} + DUMMY_PORT: ${{ secrets.DUMMY_PORT }} + run: | + python -m pytest tests