Fix: 잘못된 queryset 빌드로 인해 api가 정상 동작 하지 않는 이슈 수정 #235
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: Pull Request Merge Precondition | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: true # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
#- uses: psf/black@stable | |
# with: | |
# options: "--check --verbose" | |
#- uses: isort/isort-action@master | |
# with: | |
# configuration: "--check-only --diff" | |
# requirementsFiles: "requirements.txt" | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
pip install pytest-cov | |
- name: run pytest | |
run: | | |
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=pyconkr ./ | tee pytest-coverage.txt | |
#- name: Pytest coverage comment | |
# uses: MishaKav/pytest-coverage-comment@main | |
# with: | |
# pytest-coverage-path: ./pytest-coverage.txt | |
# junitxml-path: ./pytest.xml |