Skip to content

Make Message API endpoint customizable via env #41

Make Message API endpoint customizable via env

Make Message API endpoint customizable via env #41

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8", "3.7"]
event-loop: [asyncio, uvloop]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install libsodium23
python -m pip install -U pip setuptools
- name: Install threema.gateway
run: |
python -m pip install .[dev]
- name: Install uvloop for threema.gateway
if: ${{ matrix.event-loop == 'uvloop' }}
run: |
python -m pip install .[uvloop]
- name: Lint with flake8
run: |
flake8 .
- name: Lint with isort
run: |
isort -c . || (isort --df . && return 1)
- name: Lint with checkdocs
run: |
python setup.py checkdocs
- name: Lint with mypy
run: |
mypy setup.py tests examples threema
- name: Test with pytest
run: |
py.test --loop=${{ matrix.event-loop }}