Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test to separate steps in github action #251

Merged
merged 2 commits into from Dec 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Expand Up @@ -17,14 +17,12 @@ jobs:
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y bats gcc
python -m pip install --upgrade pip
- name: Test
run: |
./tests/test.sh
- name: Lint
run: ./tests/run_linters.sh
- name: Unit tests
run: ./tests/run_unit_tests.sh
- name: Integration tests
run: ./tests/run_integration_tests.sh

check-docs:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions tests/run_integration_tests.sh
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
sudo apt-get install bats
pip install -r requirements.txt
pip install -e .
# md file="test.snippet"
Expand Down
1 change: 1 addition & 0 deletions tests/run_linters.sh
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
pip install flake8 pydocstyle
# md file="test.snippet"
# ### Lint
#
Expand Down
5 changes: 0 additions & 5 deletions tests/test.sh

This file was deleted.

4 changes: 3 additions & 1 deletion tests/test_local.sh
Expand Up @@ -30,7 +30,9 @@ docker build -t mkdocs-simple-test-runner:$1 -f- . <<EOF
EOF

echo "Running E2E tests via Bats in Docker (python:$1) -------->"
docker run --rm -it mkdocs-simple-test-runner:$1 tests/test.sh
docker run --rm -it mkdocs-simple-test-runner:$1 tests/run_unit_tests.sh
docker run --rm -it mkdocs-simple-test-runner:$1 tests/run_linters.sh
docker run --rm -it mkdocs-simple-test-runner:$1 tests/run_integration_tests.sh
}

if [[ ! -z "$PYTHON_37_ONLY" ]]; then
Expand Down