Split unit / integration tests a bit (#956)

Unit tests should be quick and run frequently.
Integration tests can be longer and run less often.
Split them up.
This commit is contained in:
Dan Bungert 2021-05-17 07:31:29 -06:00 committed by GitHub
parent 3cbcddb651
commit 4f9de12556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: run
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} ./scripts/runtests.sh
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make check"
lint:
runs-on: ubuntu-20.04
steps:

View File

@ -55,10 +55,13 @@ flake8:
$(PYTHON) -m flake8 $(CHECK_DIRS) --exclude gettext38.py,contextlib38.py
unit:
echo "Running unit tests..."
python3 -m unittest discover
integration:
echo "Running integration tests..."
./scripts/runtests.sh
check: unit
check: unit integration
probert:
@if [ ! -d "$(PROBERTDIR)" ]; then \

View File

@ -1,6 +1,5 @@
#!/bin/bash
set -eux
python3 -m unittest discover
testschema=.subiquity/test-autoinstall-schema.json