Skip to content

Commit

Permalink
feat: add CI for Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKonar committed Oct 26, 2024
1 parent b081046 commit 01bccfb
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI build & test

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


jobs:
py-lint:
name: Lint
continue-on-error: true
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run pylint
run: pylint --recursive=y .

unit-tests:
name: Unit tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'

- name: Run unit tests
run: make test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: unit

integration-tests:
needs: unit-tests
name: Integration tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'

- name: Run integration tests
run: make integration

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: integration

0 comments on commit 01bccfb

Please sign in to comment.