From 0ac8ecd3ce23abc9f0140dce58e7c2b1b89b4e7a Mon Sep 17 00:00:00 2001 From: Simon Marti Date: Sat, 27 Feb 2021 17:10:59 +0100 Subject: [PATCH] Add basic github build pipeline --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..bc6e80c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [ master, ci, release ] + pull_request: + branches: [ master ] + + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Setup Poetry + uses: Gr1N/setup-poetry@v4 + - name: Install dependencies + run: poetry install + - name: Lint with flake8 + run: | + poetry run pip install flake8 + poetry run flake8 . --count --show-source --max-complexity=10 --max-line-length=80 --statistics + - name: Build package + run: poetry build