Skip to content

Merge pull request #95 from wells-wood-research/bug-frame-charge-94 #32

Merge pull request #95 from wells-wood-research/bug-frame-charge-94

Merge pull request #95 from wells-wood-research/bug-frame-charge-94 #32

Workflow file for this run

name: Python Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .
pip install -r dev-requirements.txt
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
- name: Build wheel
run: |
pip install wheel
python setup.py bdist_wheel
- name: Build source distribution
run: |
python setup.py sdist
- name: Upload wheel and source distribution
uses: actions/upload-artifact@v3
with:
name: python-package-${{ matrix.python-version }}
path: |
dist/*.whl
dist/*.tar.gz