Merge pull request #22 from kirill-markin:feature/workflow-tests

workflow tests
This commit is contained in:
Kirill Markin 2024-12-16 10:34:41 +01:00 committed by GitHub
commit fae0657b04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

34
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Run Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tree command
run: sudo apt-get install -y tree
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Run tests
run: |
pytest tests/