Skip to content

Commit

Permalink
Add basic github build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dalbothek committed Feb 27, 2021
1 parent c42ab6b commit 0ac8ecd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0ac8ecd

Please sign in to comment.