From 08e29bd1819d0b2a3decee95d1dae00df01a0d60 Mon Sep 17 00:00:00 2001 From: DarkShy <30442729+DarkShyMW@users.noreply.github.com> Date: Mon, 8 Jan 2024 09:53:06 +0300 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index abebfe4..8c82d7a 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -16,18 +16,23 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest Flask requests - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Start app - run: | - python3 pony.py + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest Flask requests + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Start app + run: | + pytest pony.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html +