This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
Pre-empt current task before running handle, allowing unpatched tasks… #64
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: nest_asyncio | |
on: [ push, pull_request, workflow_dispatch ] | |
env: | |
FORCE_COLOR: 1 | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12", pypy-3.9 ] | |
exclude: | |
- os: ubuntu-latest | |
python-version: 3.5 | |
- os: ubuntu-latest | |
python-version: 3.6 | |
include: | |
- os: ubuntu-20.04 | |
python-version: 3.5 | |
- os: ubuntu-20.04 | |
python-version: 3.6 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 mypy . | |
- name: Flake8 static code analysis | |
run: | |
flake8 nest_asyncio.py | |
- name: MyPy static code analysis | |
run: | | |
mypy nest_asyncio.py | |
- name: Testsuite | |
run: | | |
python tests/nest_test.py | |