Added GHA workflow to replace AppVeyor (#259) #10
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: 'PyCyphal application builder' | |
# Builds OpenCyphal PyCyphal release | |
on: | |
push: | |
branches: | |
- main | |
- issue-259 | |
# Ensures that only one workflow is running at a time | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# | |
# PyCyphal test | |
# | |
pycyphal-test: | |
name: Test PyCyphal | |
if: startsWith(github.ref, 'refs/heads/') | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
python: ['3.7', '3.8', '3.9', '3.10'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checking out | |
uses: actions/checkout@v3 | |
- name: Installing Python3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Installing dependencies | |
run: | | |
sudo apt-get install -y linux-*-extra-$(uname -r) graphviz ncat | |
git submodule update --init --recursive | |
python -m pip install --upgrade pip setuptools nox | |
nox --non-interactive --session demo check_style docs | |
# nox --non-interactive --error-on-missing-interpreters --session test pristine --python $PYTHON |