Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Issue/#18 build pipeline #19

Merged
merged 12 commits into from
Oct 21, 2022
40 changes: 28 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,57 @@
name: build

on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

check:
managedkaos marked this conversation as resolved.
Show resolved Hide resolved
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 }}
- uses: actions/checkout@v3

- 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', '3.11-dev']
managedkaos marked this conversation as resolved.
Show resolved Hide resolved

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

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
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
poetry build
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11-dev']

steps:
- uses: actions/checkout@v2
Expand All @@ -36,4 +36,4 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
fail_ci_if_error: true
fail_ci_if_error: true