limited version of uunet #236
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: tests & linters | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
Check-Quality-Of-Code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
submodules: recursive | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r env/pip_prod.txt | |
pip install -r env/pip_dev.txt | |
pip install -e . | |
- name: Validate | |
run: | | |
pre-commit install --config template-python/.pre-commit-config.yaml | |
pre-commit run --all-files --config template-python/.pre-commit-config.yaml | |
- name: Compute coverage | |
run: | | |
coverage run -m unittest discover | |
bash <(curl -s https://codecov.io/bash) |