Skip to content

Bump pyrofork from 2.2.3 to 2.3.6.post3 #51

Bump pyrofork from 2.2.3 to 2.3.6.post3

Bump pyrofork from 2.2.3 to 2.3.6.post3 #51

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test and Run
on:
push:
branches: ["staging", "master"]
pull_request:
branches: ["staging", "master"]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.4.0"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies
run: |
poetry install --no-root
- name: Check syntax errors
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Run unit tests
run: |
poetry run pytest -v
run-asyncio:
timeout-minutes: 2
needs: pytest
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.4.0"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Test run
run: |
poetry install --no-root
poetry run Riakmaw
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
API_ID: ${{ secrets.API_ID }}
API_HASH: ${{ secrets.API_HASH }}
DB_URI: ${{ secrets.DB_URI }}
IS_CI: "true"
run-uvloop:
timeout-minutes: 2
needs: run-asyncio
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.4.0"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Test run
run: |
poetry install --no-root -E all
poetry run Riakmaw
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
API_ID: ${{ secrets.API_ID }}
API_HASH: ${{ secrets.API_HASH }}
DB_URI: ${{ secrets.DB_URI }}
IS_CI: "true"