-
Notifications
You must be signed in to change notification settings - Fork 58
44 lines (42 loc) · 1.45 KB
/
dvc.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: DVC
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "lineapy/plugins/jinja_templates/dvc/*"
- "lineapy/plugins/jinja_templates/task/*"
- "lineapy/plugins/jinja_templates/module/*"
- "lineapy/plugins/dvc_pipeline_writer.py"
- "lineapy/plugins/base_pipeline_writer.py"
- "tests/unit/plugins/framework_specific/dvc/*"
- "test_pipeline_dvc_req.txt"
pull_request:
paths:
- "lineapy/plugins/jinja_templates/dvc/*"
- "lineapy/plugins/jinja_templates/task/*"
- "lineapy/plugins/jinja_templates/module/*"
- "lineapy/plugins/dvc_pipeline_writer.py"
- "lineapy/plugins/base_pipeline_writer.py"
- "tests/unit/plugins/framework_specific/dvc/*"
- "test_pipeline_dvc_req.txt"
jobs:
dvc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
submodules: "recursive"
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install -r requirements.txt && python setup.py install && rm -rf build
- name: Test with pytest
run: |
pytest -vv -m 'dvc'