Skip to content

Commit

Permalink
add basic CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Nov 10, 2023
1 parent de3f2e6 commit 4f6732a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main

jobs:
build:

runs-on: minafoundation-default-runners

steps:
- name: 📥 Checkout
uses: actions/checkout@v4

- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10

- name: ⚙️ Install dependencies
run: |
pip install poetry
poetry install
- name: 🔍 Lint with flake8
run: |
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: 🧪 Test
run: |
poetry run pytest

0 comments on commit 4f6732a

Please sign in to comment.