Skip to content

Commit

Permalink
new: pytest
Browse files Browse the repository at this point in the history
Rafiot committed Mar 2, 2024
1 parent ce5e005 commit 18204ce
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Python application - MyPy

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
name: Python ${{ matrix.python-version }} sample

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}

- name: Install poetry
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Test with MyPy
run: |
poetry run pytest tests/test.py

0 comments on commit 18204ce

Please sign in to comment.