Skip to content

Merge pull request #24 from cdamours/unused-element #18

Merge pull request #24 from cdamours/unused-element

Merge pull request #24 from cdamours/unused-element #18

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pycodestyle
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests with pytest
run: |
pytest
- name: Lint with PyCodeStyle
run: |
find . -name \*.py -exec pycodestyle {} +