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

Initial commit

Initial commit #2

Workflow file for this run

name: Run Unittests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Adjust to your project's Python version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox tests
run: |
TOX_FILE=$(find . -name tox.ini)
echo "-> Located tox file at $TOX_FILE"
if [ -f "setup.py" ]; then
echo "-> Found setup.py, using tox.ini with pkg environment"
tox -c $TOX_FILE -e pkg $RECREATE_FLAG
else
echo "-> No setup.py found, using tox.ini with requirements environment"
tox -c $TOX_FILE -e req $RECREATE_FLAG
fi