-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (45 loc) · 1.27 KB
/
pythontests.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
45
46
47
name: Python tests
on: [push]
jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
windows-latest,
macos-latest,
ubuntu-latest
]
python-version: ["3.10"]
defaults:
run:
shell: bash -l {0} # Required for conda commands.
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
- name: Install dependencies
run: |
conda create -n mesmo -c conda-forge python=${{ matrix.python-version }} contextily cvxpy numpy pandas scipy
conda activate mesmo
python development_setup.py
- name: Run tests with coverage report
run: |
conda activate mesmo
coverage run -m unittest discover tests
coverage xml
- name: Report coverage to Codecov
if: always()
continue-on-error: true
uses: codecov/codecov-action@v2
- name: Report coverage to Codacy
if: always()
continue-on-error: true
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml