ognibuild/.github/workflows/pythonpackage.yml
2021-02-22 17:17:34 +00:00

40 lines
1.1 KiB
YAML

name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip flake8 cython
python -m pip install git+https://github.com/jelmer/buildlog-consultant
python setup.py develop
mkdir -p ~/.config/breezy/plugins
brz branch lp:brz-debian ~/.config/breezy/plugins/debian
- name: Style checks
run: |
python -m flake8
- name: Typing checks
run: |
pip install -U mypy
python -m mypy ognibuild
if: "matrix.python-version != 'pypy3'"
- name: Test suite run
run: |
python -m unittest ognibuild.tests.test_suite
env:
PYTHONHASHSEED: random