Anna's Archive Instance Support #27
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
# manually trigger workflow | |
workflow_dispatch: | |
jobs: | |
run_test_suite: | |
name: Run Test Suite, Style Guide, & Code Checks | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.11] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Pipx & Poetry | |
run: | | |
python3 -m pip install --user pipx | |
python3 -m pipx ensurepath | |
pipx install poetry | |
- name: Install Dependencies & Test Dependencies | |
run: poetry install | |
- name: Style Guide Check & Code Check | |
run: poetry run pre-commit run -a | |
- name: Run Pytest | |
run: poetry run pytest -v |