Skip to content

adjust worst and best positions #74

adjust worst and best positions

adjust worst and best positions #74

Workflow file for this run

name: unit tests
on:
pull_request:
branches:
- master
jobs:
run-tests:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install GLPK
run: |
sudo apt-get update
sudo apt-get install -y glpk-utils
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Run Tests
run: |
python -c "import sys; sys.path.append('${GITHUB_WORKSPACE}/src'); import pytest; pytest.main(['tests/'])"
python -c "import sys; sys.path.append('${GITHUB_WORKSPACE}/src'); import pytest; sys.exit(pytest.main(['tests/']))"
- name: Check Test Results
run: |
if [ $? -ne 0 ]; then
echo "Tests failed"
exit 1
else
echo "Tests passed"
fi