Skip to content

Commit

Permalink
Update ci-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-winkler committed Oct 18, 2024
2 parents c967354 + bd0673e commit b071081
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Registration Library CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip flake8 black pytest requests
- name: Analysing the code with flake8
run: |
flake8 --max-line-length 120 --count --statistics src/
- name: Check code format with black
run: |
black --check --diff --color src/
- name: Run tests
run: |
pytest

0 comments on commit b071081

Please sign in to comment.