Skip to content

Update actions.

Update actions. #7

name: Build
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12]
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
python -m pip install pytest coverage codecov
python -m pip install .
- name: Test with pytest
run: |
coverage run -m pytest
codecov
- name: Extra checks
if: matrix.python-version == '3.12'
run: |
python -m pip install flake8 check-manifest sphinx
check-manifest
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --statistics
pushd doc && make html && popd