mirror of
https://github.com/sprockets/sprockets-statsd.git
synced 2024-11-22 03:00:20 +00:00
Improve the GitHub test phase.
I incorporated the changes in tox.ini into the automated test workflow so that we do not end up tagging a broken build :/
This commit is contained in:
parent
589412693e
commit
d0b860edc0
1 changed files with 9 additions and 3 deletions
12
.github/workflows/run-tests.yml
vendored
12
.github/workflows/run-tests.yml
vendored
|
@ -21,15 +21,21 @@ jobs:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools
|
python -m pip install --upgrade pip setuptools twine wheel
|
||||||
python -m pip install '.[dev]'
|
python -m pip install '.[dev]'
|
||||||
python -m pip install -e .
|
python -m pip install -e .
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
flake8 sprockets_statsd tests
|
flake8 sprockets_statsd tests setup.py docs/conf.py
|
||||||
- name: Check format
|
- name: Check format
|
||||||
run: |
|
run: |
|
||||||
yapf -dr sprockets_statsd tests
|
yapf -dr sprockets_statsd tests setup.py docs/conf.py
|
||||||
|
- name: Verify distribution build
|
||||||
|
run: |
|
||||||
|
rm -fr dist
|
||||||
|
python setup.py bdist_wheel
|
||||||
|
python setup.py sdist
|
||||||
|
twine check dist/*
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
coverage run -m unittest
|
coverage run -m unittest
|
||||||
|
|
Loading…
Reference in a new issue