Skip to content

Commit

Permalink
Update pytest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed May 10, 2024
1 parent 8a1a6c3 commit 09171e4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Test with pytest
name: Unitest with pytest

on:
push:
Expand All @@ -16,19 +16,22 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.x"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
pip install -r requirements.txt
- name: Unitest with pytest
run: |
pytest

0 comments on commit 09171e4

Please sign in to comment.