Browse Source

add action Build

master
lhenry15 3 years ago
parent
commit
30378d60cf
2 changed files with 41 additions and 1 deletions
  1. +38
    -0
      .github/workflows/unit_test.yml
  2. +3
    -1
      README.md

+ 38
- 0
.github/workflows/unit_test.yml View File

@@ -0,0 +1,38 @@
name: Build

on:
- push
# branches: [main, development]
- pull_request

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, macOS-latest]
os: [macOS-latest]
#python-version: ['3.6']
python-version: ['3.7', '3.8']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: coverall
run: |
pip install coveralls
pip install pytest-cover
- name: run pytest
run: |
py.test tods/tests/ --cov=tods
coveralls
- name: codecov
uses: codecov/codecov-action@v1

+ 3
- 1
README.md View File

@@ -2,7 +2,9 @@


<img width="500" src="./docs/img/tods_logo.png" alt="Logo" /> <img width="500" src="./docs/img/tods_logo.png" alt="Logo" />


[![Build Status](https://travis-ci.org/datamllab/tods.svg?branch=master)](https://travis-ci.org/datamllab/tods)
[![Actions Status](https://github.com/datamllab/tods/workflows/Build/badge.svg)](https://github.com/datamllab/tods/actions)

[![codecov](https://codecov.io/gh/datamllab/tods/branch/dev/graph/badge.svg?token=M90ZCVTRBF)](https://codecov.io/gh/datamllab/tods)


[中文文档](README.zh-CN.md) [中文文档](README.zh-CN.md)




Loading…
Cancel
Save