-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 968 Bytes
/
ci_vlmd.yaml
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
name: CI Workflow
on:
push:
paths:
- vlmd-submission-tools/**
- .github/workflows/ci_vlmd.yaml
pull_request:
paths:
- vlmd-submission-tools/
jobs:
vlmd-wf-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles(format('{0}{1}', github.workspace, '/poetry.lock')) }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
working-directory: ./vlmd-submission-tools
run: |
pip install poetry
poetry install -vv --no-interaction
poetry show -vv
- name: Test with pytest
working-directory: ./vlmd-submission-tools
run: |
poetry run pytest -vv --cov=vlmd_submission_tools tests