|
@@ -36,59 +36,3 @@ jobs:
|
|
|
run: |
|
|
|
cd tests
|
|
|
pytest --durations=0 --durations-min=1.0 -v
|
|
|
-
|
|
|
- build_and_test_p2pd:
|
|
|
- runs-on: ubuntu-latest
|
|
|
- timeout-minutes: 10
|
|
|
- steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - name: Set up Python
|
|
|
- uses: actions/setup-python@v2
|
|
|
- with:
|
|
|
- python-version: '3.8'
|
|
|
- - name: Cache dependencies
|
|
|
- uses: actions/cache@v2
|
|
|
- with:
|
|
|
- path: ~/.cache/pip
|
|
|
- key: Key-v1-3.8-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
|
|
|
- - name: Install dependencies
|
|
|
- run: |
|
|
|
- python -m pip install --upgrade pip
|
|
|
- pip install -r requirements.txt
|
|
|
- pip install -r requirements-dev.txt
|
|
|
- - name: Build hivemind
|
|
|
- run: |
|
|
|
- pip install . --global-option=build_py --global-option="--buildgo" --no-use-pep517
|
|
|
- - name: Test
|
|
|
- run: |
|
|
|
- cd tests
|
|
|
- pytest -k "p2p" -v
|
|
|
-
|
|
|
- codecov_in_develop_mode:
|
|
|
-
|
|
|
- runs-on: ubuntu-latest
|
|
|
- timeout-minutes: 10
|
|
|
- steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - name: Set up Python
|
|
|
- uses: actions/setup-python@v2
|
|
|
- with:
|
|
|
- python-version: '3.8'
|
|
|
- - name: Cache dependencies
|
|
|
- uses: actions/cache@v2
|
|
|
- with:
|
|
|
- path: ~/.cache/pip
|
|
|
- key: Key-v1-3.8-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
|
|
|
- - name: Install dependencies
|
|
|
- run: |
|
|
|
- python -m pip install --upgrade pip
|
|
|
- pip install -r requirements.txt
|
|
|
- pip install -r requirements-dev.txt
|
|
|
- - name: Build hivemind
|
|
|
- run: |
|
|
|
- pip install -e .
|
|
|
- - name: Test
|
|
|
- run: |
|
|
|
- pytest --cov=hivemind -v tests
|
|
|
- - name: Upload coverage to Codecov
|
|
|
- uses: codecov/codecov-action@v1
|