ci: add ddt to the tests requirements and update the contributing file accordingly
This commit is contained in:
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@@ -45,7 +45,7 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Append GitHub Actions system path
|
- name: Append GitHub Actions system path
|
||||||
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||||
- run: pip install coveralls
|
- run: pip install coveralls ddt
|
||||||
- run: pip install .
|
- run: pip install .
|
||||||
- run: coverage run --source=yamllint -m unittest discover
|
- run: coverage run --source=yamllint -m unittest discover
|
||||||
- name: Coveralls
|
- name: Coveralls
|
||||||
|
|||||||
@@ -14,9 +14,12 @@ Pull Request Process
|
|||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
pip install --user .
|
pip install --user .
|
||||||
pip install ddt
|
pip install coveralls ddt
|
||||||
python -m unittest discover # all tests...
|
# all tests...
|
||||||
python -m unittest tests/rules/test_commas.py # or just some tests (faster)
|
python -m coverage run --source=yamllint -m unittest discover
|
||||||
|
coverage report
|
||||||
|
# or just some tests (faster)
|
||||||
|
python -m unittest tests/rules/test_commas.py
|
||||||
|
|
||||||
3. If you add code that should be tested, add tests.
|
3. If you add code that should be tested, add tests.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user