test #147
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: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 8 * * *" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e '.[dev]' | |
- name: Format with Black | |
run: black . | |
- name: Lint with Ruff | |
run: ruff . | |
py_39_proto_203: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
architecture: x64 | |
cache: pip | |
- name: Install Protoc | |
uses: arduino/[email protected] | |
with: | |
version: 3.20.3 | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -e '.[ci]' | |
protoc --version | |
pip freeze | |
- name: Setup test suite | |
run: tox -vv --notest | |
- name: Run test suite | |
run: tox --skip-pkg-install | |
py_31x_proto_252: | |
strategy: | |
fail-fast: false | |
matrix: | |
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python: [ '3.10', '3.11'] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
# https://github.com/actions/checkout | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
# https://github.com/actions/setup-python | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
cache: pip | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
# https://github.com/arduino/setup-protoc | |
with: | |
version: 25.2 | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -e '.[ci]' | |
protoc --version | |
pip freeze | |
- name: Setup test suite | |
run: tox -vv --notest | |
- name: Run test suite | |
run: tox --skip-pkg-install | |
py_3x_proto_25x: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
architecture: x64 | |
cache: pip | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
version: 25.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -e '.[ci]' | |
pip --version | |
pip freeze | |
- name: Setup test suite | |
run: tox -vv --notest | |
- name: Run test suite | |
run: tox --skip-pkg-install |