Commit d6654d1c authored by Martin Larralde's avatar Martin Larralde
Browse files

Disable coverage measurement since it takes too long

parent 1327832f
......@@ -202,70 +202,70 @@ jobs:
- name: Test without coverage
run: python -m unittest discover -vv
coverage_linux:
name: Coverage (Linux)
runs-on: ubuntu-latest
needs: test_linux
if: "github.ref == 'refs/heads/main'"
env:
OS: Linux
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.5
python-release: v3.5
python-impl: CPython
- python-version: 3.6
python-release: v3.6
python-impl: CPython
- python-version: 3.7
python-release: v3.7
python-impl: CPython
- python-version: 3.8
python-release: v3.8
python-impl: CPython
- python-version: 3.9
python-release: v3.9
python-impl: CPython
- python-version: '3.10'
python-release: v3.10
python-impl: CPython
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Cache Python requirements
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
restore-keys: ${{ runner.os }}-pip-${{ matrix.python-version }}
- name: Cache built C files
uses: actions/cache@v2
with:
path: build
key: ${{ runner.os }}-build-${{ matrix.python-version }}-${{ secrets.CACHE_VERSION }}
restore-keys: ${{ runner.os }}-build-${{ matrix.python-version }}-${{ secrets.CACHE_VERSION }}
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install -U pip wheel setuptools
- name: Install Python requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build C extension
run: python setup.py build_ext --inplace --debug
- name: Test with coverage
run: python -m coverage run -m unittest discover -vv
- name: Report coverage
run: python -m coverage report
- name: Upload to Codecov
uses: codecov/codecov-action@v1
with:
flags: ${{ matrix.python-impl }},${{ matrix.python-release }},${{ env.OS }}
name: test-python-${{ matrix.python-version }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
# coverage_linux:
# name: Coverage (Linux)
# runs-on: ubuntu-latest
# needs: test_linux
# if: "github.ref == 'refs/heads/main'"
# env:
# OS: Linux
# strategy:
# fail-fast: false
# matrix:
# include:
# - python-version: 3.5
# python-release: v3.5
# python-impl: CPython
# - python-version: 3.6
# python-release: v3.6
# python-impl: CPython
# - python-version: 3.7
# python-release: v3.7
# python-impl: CPython
# - python-version: 3.8
# python-release: v3.8
# python-impl: CPython
# - python-version: 3.9
# python-release: v3.9
# python-impl: CPython
# - python-version: '3.10'
# python-release: v3.10
# python-impl: CPython
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# with:
# submodules: true
# - name: Cache Python requirements
# uses: actions/cache@v2
# with:
# path: ~/.cache/pip
# key: ${{ runner.os }}-pip-${{ matrix.python-version }}
# restore-keys: ${{ runner.os }}-pip-${{ matrix.python-version }}
# - name: Cache built C files
# uses: actions/cache@v2
# with:
# path: build
# key: ${{ runner.os }}-build-${{ matrix.python-version }}-${{ secrets.CACHE_VERSION }}
# restore-keys: ${{ runner.os }}-build-${{ matrix.python-version }}-${{ secrets.CACHE_VERSION }}
# - name: Setup Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Update pip
# run: python -m pip install -U pip wheel setuptools
# - name: Install Python requirements
# run: python -m pip install -r .github/workflows/requirements.txt
# - name: Build C extension
# run: python setup.py build_ext --inplace --debug
# - name: Test with coverage
# run: python -m coverage run -m unittest discover -vv
# - name: Report coverage
# run: python -m coverage report
# - name: Upload to Codecov
# uses: codecov/codecov-action@v1
# with:
# flags: ${{ matrix.python-impl }},${{ matrix.python-release }},${{ env.OS }}
# name: test-python-${{ matrix.python-version }}
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}
......@@ -1142,8 +1142,8 @@ cdef class ConnectionScorer:
self._index(nodes)
def compute_skippable(self, int min, int i):
assert self.skip_connection != NULL or self.backend == simd_backend.NONE
assert i < <int> self.capacity or self.backend == simd_backend.NONE
assert (self.skip_connection != NULL) | (self.backend == simd_backend.NONE)
assert (i < <int> self.capacity) | (self.backend == simd_backend.NONE)
assert min <= i
with nogil:
self._compute_skippable(min, i)
......@@ -1156,8 +1156,8 @@ cdef class ConnectionScorer:
TrainingInfo tinf not None,
bint final=False
):
assert self.skip_connection != NULL or self.backend == simd_backend.NONE
assert i < <int> nodes.length or self.backend == simd_backend.NONE
assert (self.skip_connection != NULL) | (self.backend == simd_backend.NONE)
assert (i < <int> nodes.length) | (self.backend == simd_backend.NONE)
assert min <= i
with nogil:
self._score_connections(nodes, min, i, tinf.tinf, final)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment