diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b76e8e..cfbc037 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,12 +20,12 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip setuptools wheel - python -m pip install pytest . + - name: Install poetry + run: python -m pip install poetry + - name: Install application + run: poetry install - name: Test with pytest - run: pytest + run: poetry run pytest lint: runs-on: ubuntu-latest @@ -33,15 +33,17 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: 3.9 - - name: Install dependencies - run: python -m pip install flake8 isort tan + python-version: "3.10" + - name: Install poetry + run: python -m pip install poetry + - name: Install application + run: poetry install - name: Check for flake8 issues - run: flake8 . + run: poetry run flake8 . - name: Check code formatting with Black - run: tan . --check + run: poetry run tan . --check - name: Check import ordering with isort - run: isort . --check --diff + run: poetry run isort . --check --diff mypy: runs-on: ubuntu-latest @@ -49,8 +51,10 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: 3.9 - - name: Install dependencies - run: python -m pip install mypy + python-version: "3.10" + - name: Install poetry + run: python -m pip install poetry + - name: Install application + run: poetry install - name: Check using mypy - run: mypy --ignore-missing-imports bna + run: poetry run mypy bna