chore: upgrade project to support python 3.12 #7
Workflow file for this run
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: Run tests and checks | |
on: | |
# Make workflow callable. | |
workflow_call: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
env: | |
PYTHON_VERSION: "3.12" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
- name: Use Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Install Task | |
uses: arduino/setup-task@v1 | |
- name: Install Python dependencies | |
run: task install | |
- name: Run Pytest | |
run: task test | |
- name: Run formatters in check mode | |
run: task format:check | |
## test app builds | |
- name: Build UI app | |
run: | | |
npm --prefix vocexcel-ui ci | |
npm --prefix vocexcel-ui run build |