From 4f6732a7c80b9294f303d77f5f0aa2c16b2e6c0f Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Fri, 10 Nov 2023 15:19:10 +0100 Subject: [PATCH] add basic CI workflow --- .github/workflows/ci.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..ba417c1 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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 \ No newline at end of file