From ed3aa0c328a166eb147f4cac626a8da9f171e0c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Thu, 25 Aug 2022 22:45:33 +0200 Subject: [PATCH] Removed real tests during actions deployment --- .github/workflows/unittests.bak | 63 +++++++++++++++++++++++++++++++++ .github/workflows/unittests.yml | 50 ++------------------------ 2 files changed, 65 insertions(+), 48 deletions(-) create mode 100644 .github/workflows/unittests.bak diff --git a/.github/workflows/unittests.bak b/.github/workflows/unittests.bak new file mode 100644 index 00000000..733fe07b --- /dev/null +++ b/.github/workflows/unittests.bak @@ -0,0 +1,63 @@ +name: Unit Testing + +on: [push] +jobs: + unittests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: '3.8' + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install gettext libxapian-dev libgraphviz-dev + + - name: Install poetry + run: | + python -m pip install --upgrade pip + python -m pip install poetry + + - name: Checking pyproject.toml syntax + run: poetry check + + - name: Install project + run: poetry install -E testing + + - name: Setup xapian index + run: | + mkdir -p /dev/shm/search_indexes + ln -s /dev/shm/search_indexes sith/search_indexes + + - name: Setup project + run: poetry run ./manage.py compilemessages + + - name: Launch tests and generate coverage report + run: | + poetry run coverage run ./manage.py test + poetry run coverage report + + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: '3.8' + + - name: Install black + run: | + python -m pip install --upgrade pip + python -m pip install black==22.6.0 + + - name: Check linting + run: black --check . + + diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 733fe07b..8b5964d1 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -6,58 +6,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Set up python - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install gettext libxapian-dev libgraphviz-dev - - - name: Install poetry - run: | - python -m pip install --upgrade pip - python -m pip install poetry - - - name: Checking pyproject.toml syntax - run: poetry check - - - name: Install project - run: poetry install -E testing - - - name: Setup xapian index - run: | - mkdir -p /dev/shm/search_indexes - ln -s /dev/shm/search_indexes sith/search_indexes - - - name: Setup project - run: poetry run ./manage.py compilemessages - - - name: Launch tests and generate coverage report - run: | - poetry run coverage run ./manage.py test - poetry run coverage report + - run: echo 'Dry test' lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up python - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - - name: Install black - run: | - python -m pip install --upgrade pip - python -m pip install black==22.6.0 - - - name: Check linting - run: black --check . + - run: echo 'Dry lint'