This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
update project directory structure, update note about Python 3.10, fi… #205
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
# REF: https://github.com/UQComputingSociety/uqcsbot-discord/blob/main/.github/workflows/setup-python/action.yml | |
name: Run code checks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: [] | |
env: | |
PYTHON_VERSION: '3.10' | |
POETRY_VERSION: '1.8.3' | |
jobs: | |
tests: | |
name: Run tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Local action that tries to cache as much of python & poetry as possible | |
- name: Setup environment | |
uses: ./.github/workflows/setup-python | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- name: Check with pytest | |
run: poetry run pytest | |
styling: | |
name: Run code styling | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Local action that tries to cache as much of python & poetry as possible | |
- name: Setup environment | |
uses: ./.github/workflows/setup-python | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- name: Check with black | |
run: poetry run black . | |