Skip to content

Commit

Permalink
Merge pull request #2 from managedkaos/issue/sp1thas#18-build-pipeline
Browse files Browse the repository at this point in the history
Completes the update of the build pipeline.
  • Loading branch information
managedkaos authored Oct 21, 2022
2 parents f144915 + 8954843 commit db1021c
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,50 @@ on:
branches: [ master ]

jobs:
build:

check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']


steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Black Code Formatter
uses: lgeiger/black-action@v1.0.1
with:
args: ". --check"

- name: Mypy Check
uses: jpetrucciani/mypy-check@0.761
with:
path: 'src'

build:
needs: [check]
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']

runs-on: ${{ matrix.operating-system }}

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 poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Install dependencies
run: |
poetry install
poetry check
- name: Build package
run: |
poetry build

0 comments on commit db1021c

Please sign in to comment.