Skip to content

Commit 78ccb90

Browse files
committed
Updating CI.yml with MLJFlow.jl pipeline style
1 parent 5e782c0 commit 78ccb90

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/CI.yml

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
name: CI
22
on:
3+
pull_request:
34
push:
45
branches:
56
- main
67
tags: '*'
7-
pull_request:
8-
concurrency:
9-
# Skip intermediate builds: always.
10-
# Cancel intermediate builds: only if it is a pull request build.
11-
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
138
jobs:
149
test:
15-
16-
services:
17-
mlflow:
18-
image: adacotechjp/mlflow:2.3.1
19-
ports:
20-
- 5000:5000
21-
2210
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
2311
runs-on: ${{ matrix.os }}
2412
strategy:
2513
fail-fast: false
14+
max-parallel: 1
2615
matrix:
2716
version:
28-
- '1.6'
29-
- '1'
17+
- '1.10'
18+
- '1' # automatically expands to the latest stable 1.x release of Julia.
3019
os:
3120
- ubuntu-latest
3221
arch:
3322
- x64
3423
steps:
3524
- uses: actions/checkout@v2
25+
- name: Setup custom python requirements
26+
if: hashFiles('**/requirements.txt', '**/pyproject.toml') == ''
27+
run: |
28+
touch ./requirements.txt
29+
echo "mlflow==2.17.2" > ./requirements.txt
30+
- uses: actions/setup-python@v4
31+
with:
32+
python-version: '3.10.13'
33+
cache: 'pip'
34+
- name: Setup mlflow locally
35+
run: |
36+
pip install -r ./requirements.txt
37+
python3 /opt/hostedtoolcache/Python/3.10.13/x64/bin/mlflow server --host 0.0.0.0 --port 5000 &
38+
sleep 5
3639
- uses: julia-actions/setup-julia@v1
3740
with:
3841
version: ${{ matrix.version }}
@@ -50,9 +53,10 @@ jobs:
5053
- uses: julia-actions/julia-buildpkg@v1
5154
- uses: julia-actions/julia-runtest@v1
5255
env:
56+
JULIA_NUM_THREADS: '2'
5357
MLFLOW_TRACKING_URI: "http://localhost:5000/api"
5458
- uses: julia-actions/julia-processcoverage@v1
55-
- uses: codecov/codecov-action@v2
59+
- uses: codecov/codecov-action@v3
5660
with:
5761
files: lcov.info
5862
docs:

0 commit comments

Comments
 (0)