workflow tests

This commit is contained in:
Kirill Markin 2024-12-16 10:34:22 +01:00
parent b2148b4b5b
commit 9567b8bb6d
No known key found for this signature in database
GPG key ID: 03AB9530E15B9C1C

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/