mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
ci: add some vertical space for readability
This commit is contained in:
6
.github/workflows/integration-test.yaml
vendored
6
.github/workflows/integration-test.yaml
vendored
@@ -11,28 +11,34 @@ jobs:
|
|||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.6
|
python-version: 3.6
|
||||||
|
|
||||||
- name: Set BOOTSTRAP_PIP_SPEC value
|
- name: Set BOOTSTRAP_PIP_SPEC value
|
||||||
run: |
|
run: |
|
||||||
echo "BOOTSTRAP_PIP_SPEC=git+https://github.com/$GITHUB_REPOSITORY.git@$GITHUB_REF" >> $GITHUB_ENV
|
echo "BOOTSTRAP_PIP_SPEC=git+https://github.com/$GITHUB_REPOSITORY.git@$GITHUB_REF" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build systemd image
|
- name: Build systemd image
|
||||||
run: |
|
run: |
|
||||||
.github/integration-test.py build-image
|
.github/integration-test.py build-image
|
||||||
|
|
||||||
- name: Run bootstrap checks
|
- name: Run bootstrap checks
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install pytest
|
python3 -m pip install pytest
|
||||||
pytest integration-tests/test_bootstrap.py -s
|
pytest integration-tests/test_bootstrap.py -s
|
||||||
|
|
||||||
- name: Run basic tests
|
- name: Run basic tests
|
||||||
run: |
|
run: |
|
||||||
.github/integration-test.py run-test \
|
.github/integration-test.py run-test \
|
||||||
--bootstrap-pip-spec "$BOOTSTRAP_PIP_SPEC" \
|
--bootstrap-pip-spec "$BOOTSTRAP_PIP_SPEC" \
|
||||||
basic-tests test_hub.py test_proxy.py \
|
basic-tests test_hub.py test_proxy.py \
|
||||||
test_install.py test_extensions.py
|
test_install.py test_extensions.py
|
||||||
|
|
||||||
- name: Run admin tests
|
- name: Run admin tests
|
||||||
run: |
|
run: |
|
||||||
.github/integration-test.py run-test \
|
.github/integration-test.py run-test \
|
||||||
--installer-args "--admin admin:admin" \
|
--installer-args "--admin admin:admin" \
|
||||||
--bootstrap-pip-spec "$BOOTSTRAP_PIP_SPEC" \
|
--bootstrap-pip-spec "$BOOTSTRAP_PIP_SPEC" \
|
||||||
basic-tests test_admin_installer.py \
|
basic-tests test_admin_installer.py \
|
||||||
|
|
||||||
- name: Run plugin tests
|
- name: Run plugin tests
|
||||||
run: |
|
run: |
|
||||||
.github/integration-test.py run-test \
|
.github/integration-test.py run-test \
|
||||||
|
|||||||
5
.github/workflows/unit-test.yaml
vendored
5
.github/workflows/unit-test.yaml
vendored
@@ -12,25 +12,30 @@ jobs:
|
|||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.6
|
python-version: 3.6
|
||||||
|
|
||||||
- name: Install venv, git and setup venv
|
- name: Install venv, git and setup venv
|
||||||
run: |
|
run: |
|
||||||
apt-get update --yes && apt-get install --yes python3-venv git
|
apt-get update --yes && apt-get install --yes python3-venv git
|
||||||
python3 -m venv /srv/venv
|
python3 -m venv /srv/venv
|
||||||
echo '/srv/venv/bin' >> $GITHUB_PATH
|
echo '/srv/venv/bin' >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Cache pip deps
|
- name: Cache pip deps
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /srv/venv/
|
path: /srv/venv/
|
||||||
key: ${{ runner.os }}-pip-dependencies-${{ hashFiles('*setup.py', '*dev-requirements.txt') }}
|
key: ${{ runner.os }}-pip-dependencies-${{ hashFiles('*setup.py', '*dev-requirements.txt') }}
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install -U pip==20.0.*
|
python3 -m pip install -U pip==20.0.*
|
||||||
python3 -m pip install -r dev-requirements.txt
|
python3 -m pip install -r dev-requirements.txt
|
||||||
python3 -m pip install -e .
|
python3 -m pip install -e .
|
||||||
pip freeze
|
pip freeze
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
pytest --cov=tljh tests/
|
pytest --cov=tljh tests/
|
||||||
|
|
||||||
- name: Upload code coverage stats
|
- name: Upload code coverage stats
|
||||||
run: |
|
run: |
|
||||||
codecov
|
codecov
|
||||||
|
|||||||
5
.github/workflows/upgrade-test.yaml
vendored
5
.github/workflows/upgrade-test.yaml
vendored
@@ -12,13 +12,16 @@ jobs:
|
|||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.6
|
python-version: 3.6
|
||||||
|
|
||||||
- name: Set BOOTSTRAP_PIP_SPEC value
|
- name: Set BOOTSTRAP_PIP_SPEC value
|
||||||
run: |
|
run: |
|
||||||
echo "BOOTSTRAP_PIP_SPEC=git+https://github.com/$GITHUB_REPOSITORY.git@$GITHUB_REF" >> $GITHUB_ENV
|
echo "BOOTSTRAP_PIP_SPEC=git+https://github.com/$GITHUB_REPOSITORY.git@$GITHUB_REF" >> $GITHUB_ENV
|
||||||
echo $BOOTSTRAP_PIP_SPEC
|
echo $BOOTSTRAP_PIP_SPEC
|
||||||
|
|
||||||
- name: Build systemd image
|
- name: Build systemd image
|
||||||
run: |
|
run: |
|
||||||
.github/integration-test.py build-image
|
.github/integration-test.py build-image
|
||||||
|
|
||||||
- name: Run basic tests
|
- name: Run basic tests
|
||||||
run: |
|
run: |
|
||||||
.github/integration-test.py run-test \
|
.github/integration-test.py run-test \
|
||||||
@@ -26,6 +29,7 @@ jobs:
|
|||||||
basic-tests test_hub.py test_proxy.py \
|
basic-tests test_hub.py test_proxy.py \
|
||||||
test_install.py test_extensions.py \
|
test_install.py test_extensions.py \
|
||||||
--upgrade
|
--upgrade
|
||||||
|
|
||||||
- name: Run admin tests
|
- name: Run admin tests
|
||||||
run: |
|
run: |
|
||||||
.github/integration-test.py run-test \
|
.github/integration-test.py run-test \
|
||||||
@@ -33,6 +37,7 @@ jobs:
|
|||||||
--bootstrap-pip-spec "$BOOTSTRAP_PIP_SPEC" \
|
--bootstrap-pip-spec "$BOOTSTRAP_PIP_SPEC" \
|
||||||
basic-tests test_admin_installer.py \
|
basic-tests test_admin_installer.py \
|
||||||
--upgrade
|
--upgrade
|
||||||
|
|
||||||
- name: Run plugin tests
|
- name: Run plugin tests
|
||||||
run: |
|
run: |
|
||||||
.github/integration-test.py run-test \
|
.github/integration-test.py run-test \
|
||||||
|
|||||||
Reference in New Issue
Block a user