Skip to content

Commit

Permalink
Fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Semmler committed Jan 10, 2024
1 parent 488963d commit 8150c7e
Showing 1 changed file with 47 additions and 6 deletions.
53 changes: 47 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
uses: actions/cache@v3
with:
path: $POETRY_HOME
key: poetry-1.2.0
key: poetry-1.7.1

- name: Install Poetry
run: |
python3 -m venv $POETRY_HOME
$POETRY_HOME/bin/pip install poetry==1.2.0
$POETRY_HOME/bin/pip install poetry==1.7.1
$POETRY_HOME/bin/poetry --version
echo "$POETRY_HOME/bin" >> $GITHUB_PATH
Expand All @@ -45,7 +45,8 @@ jobs:
key: poetry-${{ hashFiles('**/poetry.lock') }}

- name: Install Dependencies
run: poetry install --no-interaction --no-root --only dev
run: poetry install --no-interaction --no-root

- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
Expand All @@ -54,7 +55,47 @@ jobs:
- name: Run pre-commit
run: poetry run pre-commit run -a --verbose --show-diff-on-failure

- name: Copy test config and run test pipeline
test:
name: Lint and format code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Cache Poetry
uses: actions/cache@v3
with:
path: $POETRY_HOME
key: poetry-1.7.1

- name: Install Poetry
run: |
cp params.test.yaml params.yaml
python scripts/run_pipeline.py
python3 -m venv $POETRY_HOME
$POETRY_HOME/bin/pip install poetry==1.7.1
$POETRY_HOME/bin/poetry --version
echo "$POETRY_HOME/bin" >> $GITHUB_PATH
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v3
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}

- name: Install Dependencies
run: poetry install --no-interaction --no-root

- name: Copy test config
run: cp params.test.yaml params.yaml

- name: Run pipeline without dvc
run: python scripts/run_pipeline.py

- name: Run pipeline using dvc
run: dvc exp run

0 comments on commit 8150c7e

Please sign in to comment.