-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.56 KB
/
test_server.yml
File metadata and controls
55 lines (46 loc) · 1.56 KB
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
name: Test
# Look at this: https://github.com/iterative/dvc/pull/7213
# Forum: https://discuss.dvc.org/t/cml-github-actions-google-drive-service-account/795/3?fbclid=IwAR21DBJ3bP2m3VwZ7EUp4U1ik0YQbNRgAIdemg14msCC7UtnaBao81oTTDE
# https://github.com/iterative/cml#using-cml-with-dvc
# https://github.com/iterative/dvc.org/blob/master/content/docs/user-guide/setup-google-drive-remote.md
# https://www.ravirajag.dev/blog/mlops-github-actions
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./server
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
# The process
steps:
- name: Set up Python
uses: actions/setup-python@v4
id: cp39
with:
python-version: 3.9
- uses: actions/checkout@v2
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
${{ steps.cp39.outputs.python-path }} -m pip install --upgrade pip
${{ steps.cp39.outputs.python-path }} -m pip install '.[test]'
- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: |
${{ steps.cp39.outputs.python-path }} -m pip install --upgrade pip
${{ steps.cp39.outputs.python-path }} -m pip install .[test]
- name: Perform faster tests
run: |
${{ steps.cp39.outputs.python-path }} -m pytest -v --color yes -m test