Skip to content

Commit

Permalink
unitttests
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed May 11, 2024
1 parent 4ab0f3f commit 3955852
Showing 1 changed file with 126 additions and 1 deletion.
127 changes: 126 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master ]

jobs:
test:
test_python_3_7:
name: Unittests
runs-on: ubuntu-latest
steps:
Expand All @@ -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:
Expand Down

0 comments on commit 3955852

Please sign in to comment.