another attempt
This commit is contained in:
parent
1e541d0225
commit
e49cfb1d2b
1 changed files with 9 additions and 5 deletions
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
@ -48,6 +48,10 @@ jobs:
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
||||||
restore-keys: ${{ runner.os }}-pip-
|
restore-keys: ${{ runner.os }}-pip-
|
||||||
|
- id: os-name
|
||||||
|
uses: ASzc/change-string-case-action@v1
|
||||||
|
with:
|
||||||
|
string: ${{ runner.os }}
|
||||||
- run: pip install --user --upgrade pip wheel
|
- run: pip install --user --upgrade pip wheel
|
||||||
- if: startsWith(runner.os, 'linux')
|
- if: startsWith(runner.os, 'linux')
|
||||||
run: pip install -e .[torrent,test]
|
run: pip install -e .[torrent,test]
|
||||||
|
@ -63,12 +67,12 @@ jobs:
|
||||||
run: coverage run --source=lbry -m unittest tests/unit/test_conf.py
|
run: coverage run --source=lbry -m unittest tests/unit/test_conf.py
|
||||||
- name: submit coverage report
|
- name: submit coverage report
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.github_token }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
COVERALLS_FLAG_NAME: tests-unit-${{ runner.os }}
|
COVERALLS_FLAG_NAME: tests-unit-${{ steps.os-name.outputs.lowercase }}
|
||||||
COVERALLS_PARALLEL: true
|
COVERALLS_PARALLEL: true
|
||||||
run: |
|
run: |
|
||||||
pip install coveralls
|
pip install coveralls
|
||||||
coveralls -v --service=github
|
coveralls --service=github
|
||||||
|
|
||||||
tests-integration:
|
tests-integration:
|
||||||
name: "tests / integration"
|
name: "tests / integration"
|
||||||
|
@ -114,10 +118,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: finalize coverage report submission
|
- name: finalize coverage report submission
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.github_token }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
pip install coveralls
|
pip install coveralls
|
||||||
coveralls -v --service=github --finish
|
coveralls --service=github --finish
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: ["lint", "tests-unit", "tests-integration"]
|
needs: ["lint", "tests-unit", "tests-integration"]
|
||||||
|
|
Loading…
Reference in a new issue