1234567891011121314151617181920212223242526272829303132333435363738 |
- name: Test
- on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- jobs:
- build:
- runs-on: ${{ matrix.platform }}
- strategy:
- fail-fast: false
- matrix:
- python-version: ["3.8", "3.9", "3.10", "3.11"]
- platform: [ubuntu-latest, windows-latest]
- steps:
- - uses: actions/checkout@v4
- with:
- submodules: recursive
- fetch-depth: 0
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install packages
- run: |
- pip install '.[dev]'
- pip install black pylint
- - name: Check formatting
- run: |
- black --diff --check Lib --exclude ".*_pb2.*|_version.py"
- - name: Run Tests
- run: |
- pytest tests
|