From dc11cb3c117055a88d5ff26714b1953465bec9f1 Mon Sep 17 00:00:00 2001 From: Romanovskiy Mikhail <78794445+fleron19@users.noreply.github.com> Date: Fri, 17 Oct 2025 17:32:46 +0300 Subject: [PATCH 1/2] Create pytest.yml --- .github/workflows/pytest.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..e6cb90f --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,19 @@ +name: CI +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12.3' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Test with pytest + run: | + pip install pytest pytest-cov + pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html From 96bc06f6d0ff9f691eb01fcf6d05d0cfc0a68420 Mon Sep 17 00:00:00 2001 From: Romanovskiy Mikhail <78794445+fleron19@users.noreply.github.com> Date: Fri, 17 Oct 2025 17:43:22 +0300 Subject: [PATCH 2/2] Update pytest.yml add pip freeze --- .github/workflows/pytest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index e6cb90f..593b5ee 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -12,6 +12,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip freeze > requirements.txt pip install -r requirements.txt - name: Test with pytest run: |