Skip to content

Commit

Permalink
Merge pull request dell#30 from meenakshidembi691/meenakshidembi691-p…
Browse files Browse the repository at this point in the history
…atch-1

Added pytest.yml for configuring GitHub actions
  • Loading branch information
trisha-dell authored May 27, 2024
2 parents 5c6d954 + 3a70d03 commit 542f879
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run Unit Test via Pytest

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- 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
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
python -m unittest -v PyPowerStore/tests/unit_tests/test_*.py

0 comments on commit 542f879

Please sign in to comment.