Skip to content

modules: Update rtems #43

modules: Update rtems

modules: Update rtems #43

Workflow file for this run

name: CI
on: [pull_request, push]
jobs:
create-virtualenv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- uses: syphar/restore-pip-download-cache@v1
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- run: pip install -r requirements.txt
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
flake8:
needs: create-virtualenv
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- run: flake8 *.py rtemsspec/*.py
mypy:
needs: create-virtualenv
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- run: mypy *.py rtemsspec/*.py
pylint:
needs: create-virtualenv
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- run: pylint *.py rtemsspec/*.py
tests:
needs: create-virtualenv
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- run: coverage run --branch -m pytest -vv rtemsspec/tests
- run: coverage report -m --fail-under=100 --include=$(echo *.py rtemsspec/*.py | sed 's/ /,/g')
spec2modules:
needs: create-virtualenv
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- run: ./spec2modules.py
- run: cd modules/rtems && test -z "$(git status -s)"
- if: failure()
run: cd modules/rtems && git diff