ognibuild/.github/workflows/pythonpackage.yml
2021-02-16 20:12:40 +00:00

44 lines
1.3 KiB
YAML

name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, pypy3]
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 \
git+https://salsa.debian.org/python-debian-team/python-debian \
"git+https://salsa.debian.org/debian/distro-info#subdirectory=python&egg=distro-info" \
git+https://salsa.debian.org/jelmer/lintian-brush \
breezy \
testtools
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