Skip to content

[24.11.24 / TASK-35] Feature - 프로젝트 Init #4

[24.11.24 / TASK-35] Feature - 프로젝트 Init

[24.11.24 / TASK-35] Feature - 프로젝트 Init #4

Workflow file for this run

name: Test CI
on:
pull_request:
branches:
- main
jobs:
test-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.13.0
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.8.4
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Define a cache for the virtual environment based on the dependencies lock file
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest