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

Fix coveralls for pull requests (#86)

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