-
Notifications
You must be signed in to change notification settings - Fork 235
38 lines (30 loc) · 909 Bytes
/
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
# This workflow is triggered for every push and every pull request to the main branch, or when the
# kubruntu image is updated. It uses the (latest) container to run the tests and uploads the
# coverage report to `codecov.io`.
name: test.yml
on:
push:
branches: [ main ]
paths: '**.py'
pull_request:
paths: '**.py'
workflow_run:
workflows: ["kubruntu.yml"]
branches: [main]
types:
- completed
jobs:
execute:
runs-on: ubuntu-latest
container: kubricdockerhub/kubruntudev:latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install test dependencies
run: pip3 install -r requirements_dev.txt
- name: Test with pytest
run: pytest --cov=./ --cov-report=xml
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}