-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (35 loc) · 1.25 KB
/
ubuntu_test_cases.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
name: spare_scores test cases on ubuntu
# workflow dispatch has been added for testing purposes
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Set-up miniconda for macos and ubuntu
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
miniconda-version: "latest"
- name: Create conda env
run: conda create -n spare python=3.8
- name: Install pip
run: conda run -n spare conda install pip
- name: Install spare scores
run: conda run -n spare pip install spare_scores
- name: Download dependencies
run: pip install setuptools && pip install .
- name: Run unit tests
run: |
cd tests/unit && python -m unittest discover -s . -p "*.py"
- name: Generate Coverage Report
run: |
pip install coverage
cd tests/unit/
coverage run -m unittest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2