Make into a proper python package w/ standalone protocol definitions #15
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: Python CI | ||
on: pull_request | ||
jobs: | ||
flake8-lint: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
steps: | ||
- name: Check out source repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: flake8 Lint | ||
uses: py-actions/flake8@v2 | ||
with: | ||
path: "interface-gen" | ||
max-line-length: 100 | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: interface_gen | ||
name: Unit Tests | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11"] | ||
steps: | ||
- name: Check out source repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
working-directory: . | ||
run: pip install -r requirements.txt | ||
with: | ||
working-directory: . | ||
- name: Run Unit Tests | ||
run: python -m unittest *_test.py |