Skip to content

GDET-76: 퀴즈 정답 오답시 게임 점수 변화 구현 #78

GDET-76: 퀴즈 정답 오답시 게임 점수 변화 구현

GDET-76: 퀴즈 정답 오답시 게임 점수 변화 구현 #78

Workflow file for this run

name: Test aws lambda
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
env:
working-directory: ./aws_lambdas
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- uses: isbang/[email protected]
with:
compose-file: ${{env.working-directory}}/docker-compose.test.yaml
- name: install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.6.1
- name: setup a local virtual environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ${{env.working-directory}}/.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: install the project dependencies
run: poetry install
working-directory: ${{env.working-directory}}
- name: test app
run: poetry run python -m pytest tests -c pytest.ini
working-directory: ${{env.working-directory}}
env:
IGDB_CLIENT_ID: ${{ secrets.IGDB_CLIENT_ID }}
IGDB_CLIENT_SECRET: ${{ secrets.IGDB_CLIENT_SECRET }}