Skip to content

Commit

Permalink
try adding a build-root param
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Nov 2, 2023
1 parent b089422 commit 61e255a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 46 deletions.
6 changes: 5 additions & 1 deletion .github/actions/install-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ inputs:
python-version:
description: "Python version to use"
required: true
build-root:
required: true

runs:
using: "composite"
Expand Down Expand Up @@ -41,8 +43,10 @@ runs:

- name: Install dependencies
shell: bash
run: poetry install --no-interaction --no-ansi --no-root --with dev
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-ansi --no-root

- name: Build
shell: bash
if: inputs.build-root
run: poetry install --no-interaction --no-ansi
43 changes: 0 additions & 43 deletions .github/workflows/ci.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: ./.github/actions/install-env
with:
python-version: "3.12"
build-root: false

- name: Run pre-commit on all files
run: pre-commit run --all-files
run: poetry run pre-commit run --all-files
1 change: 1 addition & 0 deletions .github/workflows/dev-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: ./.github/actions/install-env
with:
python-version: "3.12"
build-root: false

- name: Install extra Ubuntu dependencies
run: sudo apt-get install graphviz pandoc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
arch: alt

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: set up rust
if: matrix.os != 'ubuntu-latest'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: ./.github/actions/install-env
with:
python-version: "3.12"
build-root: true

- name: Install extra Ubuntu dependencies
run: sudo apt-get install graphviz pandoc
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: ./.github/actions/install-env
with:
python-version: "3.12"
build-root: true

- name: Cache River datasets
uses: actions/cache@v3
Expand Down

0 comments on commit 61e255a

Please sign in to comment.