Unverified 提交 64ae1f76 authored 作者: Dan Foreman-Mackey's avatar Dan Foreman-Mackey 提交者: GitHub

Fix coveralls for pull requests (#86)

上级 8924d294
...@@ -4,7 +4,6 @@ on: ...@@ -4,7 +4,6 @@ on:
push: push:
branches: branches:
- master - master
- gh-actions
pull_request: pull_request:
branches: branches:
- master - master
...@@ -38,7 +37,7 @@ jobs: ...@@ -38,7 +37,7 @@ jobs:
python-version: ["3.6", "3.7"] python-version: ["3.6", "3.7"]
fast-compile: [0] fast-compile: [0]
float32: [0] float32: [0]
part: part:
- "tests --ignore=tests/tensor --ignore=tests/sparse --ignore=tests/tensor/nnet" - "tests --ignore=tests/tensor --ignore=tests/sparse --ignore=tests/tensor/nnet"
- "tests/tensor tests/sparse --ignore=tests/tensor/test_basic.py --ignore=tests/tensor/test_elemwise.py --ignore=tests/tensor/test_opt.py --ignore=tests/tensor/nnet" - "tests/tensor tests/sparse --ignore=tests/tensor/test_basic.py --ignore=tests/tensor/test_elemwise.py --ignore=tests/tensor/test_opt.py --ignore=tests/tensor/nnet"
- "tests/tensor/test_basic.py" - "tests/tensor/test_basic.py"
...@@ -76,7 +75,7 @@ jobs: ...@@ -76,7 +75,7 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v1 uses: conda-incubator/setup-miniconda@v1
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
auto-update-conda: true auto-update-conda: true
...@@ -110,17 +109,28 @@ jobs: ...@@ -110,17 +109,28 @@ jobs:
FLOAT32: ${{ matrix.float32 }} FLOAT32: ${{ matrix.float32 }}
- name: Coverage - name: Coverage
uses: exoplanet-dev/coveralls-python-action@develop shell: bash -l {0}
continue-on-error: true run: |
with: echo $COVERALLS_FLAG_NAME
parallel: true python -m pip install coveralls
coveralls
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: "py${{ matrix.python-version }} (${{ matrix.fast-compile }}-${{ matrix.float32 }}): ${{ matrix.part }}"
coverage: coverage:
name: "Upload coverage" name: "Upload coverage"
needs: test needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Coveralls Finished - name: Set up Python
uses: exoplanet-dev/coveralls-python-action@develop uses: actions/setup-python@v1
with: with:
parallel-finished: true python-version: 3.7
- name: Coveralls Finished
run: |
python -m pip install coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论