Update entrypoint script #45
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: Coverage above 95 | |
on: | |
push: | |
branches: [ "main" ] | |
paths-ignore: | |
- '**/README.md' | |
permissions: | |
contents: read | |
env: | |
service_name: itsanapi | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Run tests | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
coverage run manage.py test api | |
coverage report --fail-under=95 |