CI/Doc: Use pytest subtests (#986)
* CI/Doc: use pytest-subtests * CI: clean up pip installs a bit * make lint and unittests install the same stuff * make sure to install wheel, which is a recommended (not required) dependency for everything pip
This commit is contained in:
parent
0444fdc379
commit
b115bdafe7
|
@ -18,8 +18,8 @@ jobs:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip wheel
|
||||||
pip install flake8 pytest
|
pip install flake8 pytest pytest-subtests
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -32,8 +32,8 @@ 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
|
python -m pip install --upgrade pip wheel
|
||||||
pip install flake8 pytest
|
pip install flake8 pytest pytest-subtests
|
||||||
python ModuleUpdate.py --yes --force --append "WebHostLib/requirements.txt"
|
python ModuleUpdate.py --yes --force --append "WebHostLib/requirements.txt"
|
||||||
- name: Unittests
|
- name: Unittests
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -56,3 +56,8 @@ SNI is required to use SNIClient. If not integrated into the project, it has to
|
||||||
You can get the latest SNI release at [SNI Github releases](https://github.com/alttpo/sni/releases).
|
You can get the latest SNI release at [SNI Github releases](https://github.com/alttpo/sni/releases).
|
||||||
It should be dropped as "SNI" into the root folder of the project. Alternatively, you can point the sni setting in
|
It should be dropped as "SNI" into the root folder of the project. Alternatively, you can point the sni setting in
|
||||||
host.yaml at your SNI folder.
|
host.yaml at your SNI folder.
|
||||||
|
|
||||||
|
|
||||||
|
## Running tests
|
||||||
|
|
||||||
|
Run `pip install pytest pytest-subtests`, then use your IDE to run tests or run `pytest` from the source folder.
|
||||||
|
|
Loading…
Reference in New Issue