Made it possible to use the build in hardware support for clause 45 mdio communication #979
This file contains hidden or 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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install dependencies | |
run: | | |
pip3 install -r scripts/requirements.txt | |
pip3 install -r scripts/requirements-test.txt | |
pip3 install -r scripts/requirements-dev.txt | |
- name: lint scripts | |
run: flake8 --config scripts/.flake8 scripts | |
- name: run script tests | |
run: | | |
pytest scripts/tests \ | |
--cov=scripts \ | |
--cov-config scripts/.coveragerc \ | |
--cov-report term \ | |
--cov-report html \ | |
-vv | |
- name: store coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{ matrix.python-version }} | |
path: htmlcov |