[PR] Keyword Argument Fix, Transform Win/Loss dictionary fix #41
This file contains 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: continuous integration (ci) | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
workflow_dispatch: | |
issue_comment: | |
types: [created] | |
# To successfully find the files that are required for testing: | |
env: | |
TEST_WORKSPACE: ${{ github.workspace }} | |
jobs: | |
ci: | |
if: github.event_name == 'pull_request' || (github.event_name == 'issue_comment' && github.event.comment.body == 'recheck ci' && github.event.comment.user.login == 'Kaszanas') | |
# Set up operating system | |
runs-on: ubuntu-latest | |
# Define job steps | |
steps: | |
- name: Set up Python 3.11.4 | |
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f | |
with: | |
python-version: "3.11.4" | |
- name: Check-out repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Install poetry | |
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a | |
# Installing only development dependencies (for pre-commit) | |
- name: Install development dependencies | |
run: poetry install --with dev | |
- name: Initialize pre-commit | |
run: poetry run pre-commit install | |
- name: Run pre-commit on all files. | |
run: poetry run pre-commit run --all-files | |
- name: Build Docker Image With Compose | |
run: | | |
make action_compose_build | |
- name: Run Docker Tests With Compose | |
run: | | |
make action_compose_test | |
# TODO: This may be ran in docker: | |
# See if the documentation builds correctly: | |
- name: Build documentation | |
run: poetry run make html --directory docs/ |