From 39558524e2568f995f041885184317f3a2b074d2 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 12 May 2024 01:42:14 +0200 Subject: [PATCH] unitttests --- .github/workflows/unit-tests.yml | 127 ++++++++++++++++++++++++++++++- 1 file changed, 126 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5165c72..72a1876 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - test: + test_python_3_7: name: Unittests runs-on: ubuntu-latest steps: @@ -32,6 +32,131 @@ jobs: LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }} run: coverage run --source unicorn_fy unittest_unicorn_fy.py + test_python_3_8: + name: Unittests + runs-on: ubuntu-latest + steps: + - name: GitHub Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.8 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r test-requirements.txt + pip install coveralls + + - name: Run Unittest + env: + LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }} + LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }} + run: coverage run --source unicorn_fy unittest_unicorn_fy.py + + test_python_3_9: + name: Unittests + runs-on: ubuntu-latest + steps: + - name: GitHub Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r test-requirements.txt + pip install coveralls + + - name: Run Unittest + env: + LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }} + LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }} + run: coverage run --source unicorn_fy unittest_unicorn_fy.py + + test_python_3_10: + name: Unittests + runs-on: ubuntu-latest + steps: + - name: GitHub Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r test-requirements.txt + pip install coveralls + + - name: Run Unittest + env: + LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }} + LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }} + run: coverage run --source unicorn_fy unittest_unicorn_fy.py + + test_python_3_11: + name: Unittests + runs-on: ubuntu-latest + steps: + - name: GitHub Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r test-requirements.txt + pip install coveralls + + - name: Run Unittest + env: + LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }} + LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }} + run: coverage run --source unicorn_fy unittest_unicorn_fy.py + + test_python_3_12: + name: Unittests + runs-on: ubuntu-latest + steps: + - name: GitHub Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r test-requirements.txt + pip install coveralls + + - name: Run Unittest + env: + LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }} + LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }} + run: coverage run --source unicorn_fy unittest_unicorn_fy.py + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: