Merge pull request #27 from a5chin/dependabot/pip/pytest-8.3.2 #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: | | |
export PYTHONUNBUFFERED=1 | |
pip install poetry | |
- name: Set up Dependencies | |
run: poetry install --no-interaction | |
- name: Run Pytest if directory exists | |
run: | | |
if [ -d "./tests/" ]; then | |
poetry run pytest -s | |
fi |