Skip to content

Commit

Permalink
Create only-run-tests.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
amila-desilva committed May 30, 2024
1 parent 3df8eca commit cd87ade
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/only-run-tests.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cd87ade

Please sign in to comment.