Skip to content

Commit

Permalink
refactor(ci): only install dev dependencies for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Oct 29, 2023
1 parent 78ea6d8 commit 6f6430e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/actions/setup-python-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
poetry-version:
description: 'Poetry version'
required: true
installation-arguments:
descriptions: 'Poetry installation arguments'
required: false

runs:
using: 'composite'
Expand Down Expand Up @@ -43,9 +46,9 @@ runs:

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
run: poetry install --no-interaction --no-root ${{ inputs.installation-arguments }}
shell: bash

- name: Install project
run: poetry install --no-interaction
run: poetry install --no-interaction ${{ inputs.installation-arguments }}
shell: bash
6 changes: 1 addition & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install pdftotext
run: |
sudo apt-get update
sudo apt-get -y install build-essential libpoppler-cpp-dev pkg-config
- name: Setup Python & Poetry
uses: ./.github/actions/setup-python-poetry
with:
python-version: "3.11"
poetry-version: "1.6.1"
installation-arguments: --only dev

- name: Run CI
run: poetry run task format && poetry run task lint && poetry run task mypy

0 comments on commit 6f6430e

Please sign in to comment.