67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
name: build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
lint:
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v3
|
|
- run: python -m pip install --upgrade pip wheel
|
|
- run: pip install tox tox-gh-actions
|
|
- run: tox -eflake8
|
|
- run: tox -edocs
|
|
tests:
|
|
name: tests
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
- run: python -m pip install --upgrade pip wheel
|
|
- run: pip install tox tox-gh-actions
|
|
- run: tox
|
|
tests-micropython:
|
|
name: tests-micropython
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v3
|
|
- run: python -m pip install --upgrade pip wheel
|
|
- run: pip install tox tox-gh-actions
|
|
- run: tox -eupy
|
|
coverage:
|
|
name: coverage
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v3
|
|
- run: python -m pip install --upgrade pip wheel
|
|
- run: pip install tox tox-gh-actions
|
|
- run: tox
|
|
- uses: codecov/codecov-action@v3
|
|
with:
|
|
files: ./coverage.xml
|
|
fail_ci_if_error: true
|
|
benchmark:
|
|
name: benchmark
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v3
|
|
- run: python -m pip install --upgrade pip wheel
|
|
- run: pip install tox tox-gh-actions
|
|
- run: tox -ebenchmark
|