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:
Dave Shawley 2021-07-21 12:27:33 -04:00
parent 589412693e
commit d0b860edc0
No known key found for this signature in database
GPG key ID: F41A8A99298F8EED

View file

@ -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