Add random_groups example #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'balanced_group_system/**' | |
| - 'tests/**' | |
| - 'examples/**' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'balanced_group_system/**' | |
| - 'tests/**' | |
| - 'examples/**' | |
| jobs: | |
| unit_tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.9, '3.x'] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| - name: Install dependencies | |
| run: | | |
| poetry install | |
| - name: Run tests with pytest | |
| run: | | |
| poetry run pytest | |
| integration_tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install dependencies | |
| run: | | |
| pip3 install -r examples/create_random_teams/requirements.txt | |
| - name: Run create_random_teams example | |
| run: | | |
| cd examples/create_random_teams && python3 main.py |