Skip to content

docs: add testing instructions #339

docs: add testing instructions

docs: add testing instructions #339

Workflow file for this run

name: ci
on: push
jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install UV
run: pip install uv cookiecutter
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: ~/.cache/uv
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-uv-${{ hashFiles('pyproject.toml') }}
- name: Generate Project with Cookiecutter
run: |
ls -l
cookiecutter --no-input .
cd name-of-the-project
- name: Create Virtual Environment for UV
run: |
cd name-of-the-project
make install
echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
- name: Install Dependencies
run: |
cd name-of-the-project
uv pip install -e ".[dev]"
- name: Run Tests
run: |
cd name-of-the-project
uv run pytest tests -vv --show-capture=all