only run OPP test, and enable asyncio debugging #177
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 all platforms | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows-latest | |
python-version: 3.8 | |
- os: windows-latest | |
python-version: 3.9 | |
- os: windows-latest | |
python-version: "3.10" | |
- os: windows-latest | |
python-version: 3.11 | |
# - os: ubuntu-latest | |
# python-version: 3.8 | |
# - os: ubuntu-latest | |
# python-version: 3.9 | |
# - os: ubuntu-latest | |
# python-version: "3.10" | |
# - os: ubuntu-latest | |
# python-version: 3.11 | |
# - os: macos-latest | |
# python-version: 3.8 | |
# - os: macos-latest | |
# python-version: 3.9 | |
# - os: macos-latest | |
# python-version: "3.10" | |
# - os: macos-latest | |
# python-version: 3.11 | |
steps: | |
- name: Checkout MPF | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install MPF | |
run: | | |
pip install --upgrade pip setuptools wheel build coveralls | |
pip install -e . | |
- name: Run tests | |
run: coverage run -m unittest -v mpf.tests.test_OPP | |
- name: Upload coverage data to coveralls.io | |
run: coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}-${{ matrix.os }} | |
COVERALLS_PARALLEL: true | |
coveralls: | |
name: Indicate completion to coveralls.io | |
needs: tests | |
runs-on: ubuntu-latest | |
container: python:3-slim | |
steps: | |
- name: Finished | |
run: | | |
pip3 install --upgrade coveralls | |
coveralls --service=github --finish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |