Skip to content

Always explicitly create event loop #97

Always explicitly create event loop

Always explicitly create event loop #97

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- master
pull_request:
branches:
- master
paths:
- .github/workflows/cis.yml
- "src/**"
- "tests/**"
- pyproject.toml
- setup.py
- tox.ini
defaults:
run:
shell: bash
jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install tools
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Linting
env:
TOXENV: lint
run: |
tox
tests:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.12"]
include:
- python-version: "3.8"
toxenv: py38
- python-version: "3.12"
toxenv: py312
name: Unit tests (${{ matrix.os }}, Python ${{matrix.python-version}})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Get history and tags for SCM versioning to work
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Test
env:
TOXENV: ${{ matrix.toxenv }}
run: |
tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: github.event_name != 'schedule'
with:
name: codecov-umbrella
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}