mirror of https://github.com/tqdm/tqdm.git
tests: misc tidy
This commit is contained in:
parent
e20d873a03
commit
8788ad2545
|
@ -30,8 +30,16 @@ jobs:
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
- run: pip install -U tox
|
- name: install
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
pip install -U tox
|
||||||
|
mkdir -p "$HOME/bin"
|
||||||
|
curl -sfL https://coverage.codacy.com/get.sh > "$HOME/bin/codacy"
|
||||||
|
chmod +x "$HOME/bin/codacy"
|
||||||
|
echo "$HOME/bin" >> $GITHUB_PATH
|
||||||
- run: tox -e py${PYVER/./}
|
- run: tox -e py${PYVER/./}
|
||||||
|
shell: bash
|
||||||
env:
|
env:
|
||||||
PYVER: ${{ matrix.python }}
|
PYVER: ${{ matrix.python }}
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
@ -49,7 +57,13 @@ jobs:
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
- run: pip install -U tox
|
- name: install
|
||||||
|
run: |
|
||||||
|
pip install -U tox
|
||||||
|
mkdir -p "$HOME/bin"
|
||||||
|
curl -sfL https://coverage.codacy.com/get.sh > "$HOME/bin/codacy"
|
||||||
|
chmod +x "$HOME/bin/codacy"
|
||||||
|
echo "$HOME/bin" >> $GITHUB_PATH
|
||||||
- name: tox
|
- name: tox
|
||||||
run: |
|
run: |
|
||||||
if [[ "$PYVER" == py* ]]; then
|
if [[ "$PYVER" == py* ]]; then
|
||||||
|
@ -104,7 +118,6 @@ jobs:
|
||||||
skip_existing: true
|
skip_existing: true
|
||||||
- id: collect_assets
|
- id: collect_assets
|
||||||
name: Collect assets
|
name: Collect assets
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=asset_path::$(ls dist/*.whl)"
|
echo "::set-output name=asset_path::$(ls dist/*.whl)"
|
||||||
echo "::set-output name=asset_name::$(basename dist/*.whl)"
|
echo "::set-output name=asset_name::$(basename dist/*.whl)"
|
||||||
|
@ -154,7 +167,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
use_lxd: true
|
use_lxd: true
|
||||||
- name: Snap build
|
- name: Snap build
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
export SNAPCRAFT_IMAGE_INFO='{"build_url": "https://github.com/tqdm/tqdm/actions/runs/'$GITHUB_RUN_ID'"}'
|
export SNAPCRAFT_IMAGE_INFO='{"build_url": "https://github.com/tqdm/tqdm/actions/runs/'$GITHUB_RUN_ID'"}'
|
||||||
sg lxd -c 'snapcraft --use-lxd'
|
sg lxd -c 'snapcraft --use-lxd'
|
||||||
|
@ -168,7 +180,6 @@ jobs:
|
||||||
snapcraft_token: ${{ secrets.SNAP_TOKEN }}
|
snapcraft_token: ${{ secrets.SNAP_TOKEN }}
|
||||||
- if: github.event_name == 'push' && steps.collect_assets.outputs.snap_channel
|
- if: github.event_name == 'push' && steps.collect_assets.outputs.snap_channel
|
||||||
name: Snap deploy
|
name: Snap deploy
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if [ -n "$(ls tqdm*.snap 2>/dev/null)" ]; then
|
if [ -n "$(ls tqdm*.snap 2>/dev/null)" ]; then
|
||||||
sudo snapcraft upload tqdm*.snap --release $CHANNEL
|
sudo snapcraft upload tqdm*.snap --release $CHANNEL
|
||||||
|
|
13
tox.ini
13
tox.ini
|
@ -17,11 +17,8 @@ deps =
|
||||||
commands =
|
commands =
|
||||||
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf"
|
pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf"
|
||||||
- coveralls
|
- coveralls
|
||||||
- curl -OL https://coverage.codacy.com/get.sh
|
- codacy report -r coverage.xml
|
||||||
- bash get.sh report -r coverage.xml
|
allowlist_externals = codacy
|
||||||
allowlist_externals =
|
|
||||||
curl
|
|
||||||
bash
|
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
deps =
|
deps =
|
||||||
|
@ -31,8 +28,7 @@ commands =
|
||||||
pytest --durations=10 --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf"
|
pytest --durations=10 --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf"
|
||||||
- coveralls
|
- coveralls
|
||||||
codecov
|
codecov
|
||||||
- curl -OL https://coverage.codacy.com/get.sh
|
- codacy report -r coverage.xml
|
||||||
- bash get.sh report -r coverage.xml
|
|
||||||
allowlist_externals = {[coverage]allowlist_externals}
|
allowlist_externals = {[coverage]allowlist_externals}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
@ -65,8 +61,7 @@ commands = pytest --durations=0 -k tests_perf
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
deps = flake8
|
deps = flake8
|
||||||
commands =
|
commands = flake8 -j 8 --count --statistics .
|
||||||
flake8 -j 8 --count --statistics .
|
|
||||||
|
|
||||||
[testenv:setup.py]
|
[testenv:setup.py]
|
||||||
deps =
|
deps =
|
||||||
|
|
Loading…
Reference in New Issue