Utilisation de diff-cover
dans le job de couverture de code de GHA
#93
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: Check lint | |
on: | |
pull_request: | |
branches: | |
- production | |
- main | |
push: | |
branches: | |
- production | |
- main | |
jobs: | |
black: | |
name: Check black has been run | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup git | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r web/requirements.app.txt | |
pip install -r web/requirements.dev.txt | |
- name: Check black has nothing to do | |
run: black . --check |