From 059601f9c8236db520c6e08c15fc8cb41b38b26b Mon Sep 17 00:00:00 2001 From: Trey Guest Date: Tue, 16 Jul 2024 10:09:42 +0200 Subject: [PATCH] Update testing.yml --- .github/workflows/testing.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 8b13789..0612bac 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1 +1,34 @@ +name: Phenom Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.7, 3.8, 3.9, 3.10] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Run tests + run: | + pytest