From ac36617d3cd34fc5fcade5661aca9ab9389905ff Mon Sep 17 00:00:00 2001 From: lhenry15 Date: Fri, 17 Dec 2021 10:48:12 -0600 Subject: [PATCH] add action Build --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..74736a9 --- /dev/null +++ b/.github/workflows/build.yml @@ -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