Remove old workflow to generate specific example image via pytest

This commit is contained in:
Felix Seifert
2023-06-18 20:34:39 +02:00
parent 010853b669
commit a221e24db6
3 changed files with 0 additions and 67 deletions
@@ -1,55 +0,0 @@
name: Generate Test Image on Ubuntu
on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- name: Install required packages
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y locales
sudo locale-gen zh_TW ja_JP ko_KR en_US
sudo update-locale LANG=en_US
echo "LC_ALL=en_US" >> $GITHUB_ENV
echo "LANG=en_US" >> $GITHUB_ENV
echo "LANGUAGE=en_US" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
if: matrix.os != 'windows-latest'
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Display current folder
run: |
pwd
ls
- name: Generate test image
if: matrix.os == 'ubuntu-latest'
run: |
pytest -m 'genimage'
- name: Upload File
uses: actions/upload-artifact@v2
with:
name: Generated image for test
path: /home/runner/work/roadmapper/roadmapper/src/tests/ColourThemeExtensiveUbuntu.png
- name: Display test folder content
run: |
pwd
ls /home/runner/work/roadmapper/roadmapper/src/tests/
-1
View File
@@ -38,5 +38,4 @@ addopts = "-v"
markers = [
"unit: Unit tests which are not dependent on environment",
"ubuntu: Test which only apply to Ubuntu environment",
"genimage: To generate test image",
]
-11
View File
@@ -1,11 +0,0 @@
import os
from typing import Type
import pytest
import src.tests.roadmap_generators.roadmap_generator as roadmap_generator
@pytest.mark.genimage
class TestGenerateRoadmaps:
def test_generate_and_save_all_roadmaps_in(self):
roadmap_generator.generate_and_save_all_roadmaps_in()
assert True