mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
test refactor: slim down workflow for readability
This commit is contained in:
12
.github/workflows/unit-test.yaml
vendored
12
.github/workflows/unit-test.yaml
vendored
@@ -82,15 +82,15 @@ jobs:
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
python3 -m pip install -r dev-requirements.txt
|
||||
python3 -m pip install -e .
|
||||
pip install -r dev-requirements.txt
|
||||
pip install -e .
|
||||
|
||||
- name: List Python dependencies
|
||||
run: |
|
||||
pip freeze
|
||||
|
||||
# We abort pytest after two failures as a compromise between wanting to
|
||||
# avoid a flood of logs while still understanding if multiple tests would
|
||||
# fail.
|
||||
- name: Run unit tests
|
||||
run: pytest --verbose --maxfail=2 --color=yes --durations=10 --cov=tljh tests/
|
||||
run: pytest tests
|
||||
timeout-minutes: 15
|
||||
|
||||
- uses: codecov/codecov-action@v3
|
||||
|
||||
Reference in New Issue
Block a user