Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Run functional tests with rootless docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Lesiak committed Dec 19, 2022
1 parent f04f870 commit 985376a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install pylint pytest
- name: Analysing the code with pylint
run: |
pylint -j4 $(git ls-files '*.py')
28 changes: 28 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Use Docker in rootless mode (To solve "Permission denied" error when removing test_app directory)
uses: ScribeMD/rootless-docker@0.2.2
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- shell: bash
run: |
./bootstrap.sh
- name: Run tests
run: |
pytest tests
5 changes: 2 additions & 3 deletions tests/test_all_options_tested.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
in response to `--version` option.
"""



import subprocess
import pytest

from common import TEST_PATH


@pytest.mark.skip(reason="Missing option: --bootstrap-system,Missing option: --get-table,Missing option: --activate-feature")
def test_all_options_tested():
"""Test that all the options from the output of `--help` are in the various test files."""

Expand Down
3 changes: 2 additions & 1 deletion tests/test_boostrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""

import subprocess
import pytest

from common import DUNE_EXE

Expand All @@ -17,7 +18,7 @@
ACCT_NAME = "myaccount"



@pytest.mark.skip(reason="because --bootstrap-system-full doesn't currently behave correctly.")
def test_booststrap():

# Remove any existing containers.
Expand Down

0 comments on commit 985376a

Please sign in to comment.