Improve code quality #9
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: Quality Checks | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' | |
- name: Set up Cloud SDK | |
uses: google-github-actions/setup-gcloud@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: latest | |
- name: Setup Poetry cache | |
uses: actions/cache@v4 | |
with: | |
path: ./.venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install just | |
uses: extractions/setup-just@v1 | |
- name: Configure Poetry | |
run: | | |
poetry config virtualenvs.in-project true | |
poetry config virtualenvs.create true | |
- name: Install dependencies | |
run: poetry install --no-interaction | |
- name: Run checks | |
run: poetry run just check | |
- name: Run tests | |
run: poetry run just test |