Added ci for tests. First testing

This commit is contained in:
Alex Dvornik
2026-02-20 10:57:28 +01:00
parent f49b2a5f8a
commit 66c0b0c6cf
3 changed files with 48 additions and 2 deletions

46
.github/workflows/ci-tests.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: Tests
on:
pull-request:
branches: ["main", "dev"]
jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ '3.12' ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
working-directory: .
run: |
pip install -e .[dev]
- name: Run flake8
working-directory: .
run: |
flake8 ./src/
test:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ '3.12' ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
working-directory: .
run: |
pip install -e .[dev]
- name: Run flake8
working-directory: .
run: |
pytest