make protobuf an optional requirement #151
Workflow file for this run
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: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: pip install riot==0.19.0 | |
- run: riot -v run check_fmt | |
- run: riot -v run -s mypy | |
- run: riot -v run -s flake8 | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install riot | |
# Note that pip3 has to be used since the system pip when running | |
# under the 2.7 instance will be Python 2 pip. | |
# (riot is not Python 2 compatible) | |
run: pip3 install riot==0.19.0 | |
- run: | | |
riot run -p ${{ matrix.python-version}} test |