Skip to content

Commit

Permalink
Fixing pipeline by running mlflow inside the same matrix instance
Browse files Browse the repository at this point in the history
  • Loading branch information
pebeto committed Aug 20, 2023
1 parent d96deb3 commit 86bcbee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ on:
tags: '*'
jobs:
test:
services:
mlflow:
image: adacotechjp/mlflow:2.3.1
ports:
- 5000:5000
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 1
matrix:
version:
- '1.6'
Expand All @@ -30,6 +26,14 @@ jobs:
- x64
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup mlflow locally
run: |
pip install mlflow
python3 /opt/hostedtoolcache/Python/3.10.12/x64/bin/mlflow server --host 0.0.0.0 --port 5000 &
sleep 5
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand All @@ -49,6 +53,6 @@ jobs:
env:
JULIA_NUM_THREADS: 2
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v2
with:
file: lcov.info
files: lcov.info
2 changes: 1 addition & 1 deletion src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function save(logger::MLFlowLogger, mach::Machine)

model = mach.model

experiment = getorcreateexperiment(logger.service, logger.experiment_name,
experiment = getorcreateexperiment(logger.service, logger.experiment_name;
artifact_location=logger.artifact_location)
run = createrun(logger.service, experiment)

Expand Down

0 comments on commit 86bcbee

Please sign in to comment.