feat: 시연코드 #138
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Feat branch Push Workflow | |
on: | |
push: | |
branches-ignore: | |
- main | |
- dev | |
workflow_dispatch: # Run workflow(수동 실행) 기능 활성화 | |
branches-ignore: | |
- main | |
- dev | |
env: | |
PYTHON_VERSION: '3.10' | |
MOVIEW_CORE_ENV: 'dev' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# 1. 환경 설정 | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ env.PYTHON_VERSION }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Setup Python venv | |
run: python -m venv venv | |
- name: Install dependencies | |
run: ./venv/bin/python -m pip install -r requirements.txt | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
# # 2. 테스트 진행 | |
# - name: Run tests with coverage | |
# run: ./venv/bin/python -m coverage run -m unittest discover -s tests -p "test_*.py" | |
# shell: bash | |
# | |
# - name: Check test coverage | |
# id: coverage-check | |
# run: ./venv/bin/python -m coverage report -m | |
# shell: bash |