Skip to content

GDET-25: 자동 테스트 구축 #4

GDET-25: 자동 테스트 구축

GDET-25: 자동 테스트 구축 #4

name: Test backend app
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: install dependencies
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.6.1
# - uses: actions/cache@v2
# with:
# path: ${{ env.pythonLocation }}
# key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
- name: test app
run: poetry run python -m pytest tests -c pytest.ini
working-directory: ./backend