Update python-app.yml

This commit is contained in:
DarkShy
2024-01-08 09:53:06 +03:00
committed by GitHub
parent c639874d19
commit 08e29bd181

View File

@@ -16,18 +16,23 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up Python 3.10 - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3 uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: | - name: Install dependencies
python -m pip install --upgrade pip run: |
pip install flake8 pytest Flask requests python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install flake8 pytest Flask requests
- name: Start app if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
run: | - name: Start app
python3 pony.py run: |
pytest pony.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html