Make Message API endpoint customizable via env #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | |
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 }} |