Skip to content

Feature/issue 29 add poetry #46

Feature/issue 29 add poetry

Feature/issue 29 add poetry #46

Workflow file for this run

name: Integration tests and flake8
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
services:
minio:
image: minio/minio
volumes:
- /data
env:
MINIO_ACCESS_KEY: administrator
MINIO_SECRET_KEY: administrator
ports:
- 9000:9000
volumes:

Check failure on line 26 in .github/workflows/integration.yml

View workflow run for this annotation

GitHub Actions / Integration tests and flake8

Invalid workflow file

The workflow is not valid. .github/workflows/integration.yml (Line: 26, Col: 9): 'volumes' is already defined
- /minio/data:/data
options: --name minio-server
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint poetry
poetry install --with dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: integration tests
run: poetry run pytest tests
env:
MINIO_TEST_CONNECTION: localhost:9000
MINIO_TEST_ACCESS_KEY: administrator
MINIO_TEST_SECRET_KEY: administrator