Incident management: improve validation #99
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: Run mypy on API | |
on: | |
pull_request: | |
paths: | |
- 'api/**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: debian:11 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup APT | |
run: | | |
apt-get update | |
apt-get install --no-install-recommends -y ca-certificates gnupg | |
echo "deb http://deb-ci.ooni.org unstable main" >> /etc/apt/sources.list | |
apt-key adv --verbose --keyserver hkp://keyserver.ubuntu.com --recv-keys "B5A08F01796E7F521861B449372D1FF271F2DD50" | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install --no-install-recommends -qy mypy | |
- name: Run tests | |
# see the mypy.ini file | |
run: cd api && mypy **/*.py |