Skip to content

Move usage to v2 model #106

Move usage to v2 model

Move usage to v2 model #106

Workflow file for this run

---
name: All Usage checks and tests
on:
push:
branches-ignore:
- main
paths:
- "usage_function/**"
- ".github/workflows/**"
jobs:
usage-job:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Bootstrap poetry
shell: bash
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry
- name: Configure poetry
shell: bash
run: |
python -m poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/cache@v4
id: cache
with:
path: usage_function/.venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('usage_function/poetry.lock') }}
- name: Check poetry.lock consistency
shell: bash
run: |
pwd
cd usage_function
poetry check --lock
- name: Install dependencies
shell: bash
run: |
pwd
cd usage_function
python -m poetry install
- name: Run tests
shell: bash
run: |
pwd
cd usage_function
source .venv/bin/activate
./run_tests.sh