This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (55 loc) · 1.57 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Test
on:
workflow_call:
permissions:
contents: read
jobs:
go:
name: Test Go
strategy:
matrix:
runner: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
check-latest: true
cache: false
- name: Install mage
run: go install github.com/magefile/mage@v1.15.0
- name: Run unit tests
run: mage test:unit
python:
name: Test Python
strategy:
matrix:
runner: [macos-latest, ubuntu-latest, windows-latest]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
check-latest: true
cache: false
- name: Install mage
run: go install github.com/magefile/mage@v1.15.0
- name: Install our package in editable mode
run: pip install -e .
- name: Initialize MLflow repo
run: mage repo:init
- name: Install dependencies
run: pip install pytest==8.1.1 psycopg2-binary -e .mlflow.repo
- name: Run integration tests
run: mage test:python
# Temporary workaround for failing tests
continue-on-error: ${{ matrix.runner != 'ubuntu-latest' }}