|
1 | 1 | name: CI
|
2 | 2 | on:
|
| 3 | + pull_request: |
3 | 4 | push:
|
4 | 5 | branches:
|
5 | 6 | - main
|
6 | 7 | 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/') }} |
13 | 8 | jobs:
|
14 | 9 | test:
|
15 |
| - |
16 |
| - services: |
17 |
| - mlflow: |
18 |
| - image: adacotechjp/mlflow:2.3.1 |
19 |
| - ports: |
20 |
| - - 5000:5000 |
21 |
| - |
22 | 10 | name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
|
23 | 11 | runs-on: ${{ matrix.os }}
|
24 | 12 | strategy:
|
25 | 13 | fail-fast: false
|
| 14 | + max-parallel: 1 |
26 | 15 | matrix:
|
27 | 16 | version:
|
28 |
| - - '1.6' |
29 |
| - - '1' |
| 17 | + - '1.10' |
| 18 | + - '1' # automatically expands to the latest stable 1.x release of Julia. |
30 | 19 | os:
|
31 | 20 | - ubuntu-latest
|
32 | 21 | arch:
|
33 | 22 | - x64
|
34 | 23 | steps:
|
35 | 24 | - 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 |
36 | 39 | - uses: julia-actions/setup-julia@v1
|
37 | 40 | with:
|
38 | 41 | version: ${{ matrix.version }}
|
|
50 | 53 | - uses: julia-actions/julia-buildpkg@v1
|
51 | 54 | - uses: julia-actions/julia-runtest@v1
|
52 | 55 | env:
|
| 56 | + JULIA_NUM_THREADS: '2' |
53 | 57 | MLFLOW_TRACKING_URI: "http://localhost:5000/api"
|
54 | 58 | - uses: julia-actions/julia-processcoverage@v1
|
55 |
| - - uses: codecov/codecov-action@v2 |
| 59 | + - uses: codecov/codecov-action@v3 |
56 | 60 | with:
|
57 | 61 | files: lcov.info
|
58 | 62 | docs:
|
|
0 commit comments