3333 cache : " pip"
3434 - name : Install dependencies
3535 run : |
36- python${{ matrix.python-version }} -m pip install --upgrade "pip<25.3" build pip-tools
36+ python${{ matrix.python-version }} -m pip install --upgrade "pip<25.3" build pip-tools pre-commit
3737 python${{ matrix.python-version }} -m piptools compile --extra dev -o requirements.txt mpcontribs-client/setup.py mpcontribs-api/setup.py
3838 python${{ matrix.python-version }} -m pip install -r requirements.txt
3939 cd mpcontribs-api && python${{ matrix.python-version }} -m pip install --no-deps .
4747 run : |
4848 $env:SSL_CERT_FILE=$(python${{ matrix.python-version }} -m certifi)
4949 echo "SSL_CERT_FILE=$env:SSL_CERT_FILE" >> $GITHUB_ENV
50+
51+ - name : Run pre-commit
52+ run : |
53+ python${{ matrix.python-version }} -m pip install pre-commit
54+ pre-commit install
55+ pre-commit run --all-files
56+
5057 - name : Test Client and build
5158 env :
5259 MPCONTRIBS_API_KEY : ${{ secrets.MPCONTRIBS_API_KEY }}
@@ -58,22 +65,11 @@ jobs:
5865 python${{ matrix.python-version }} -m pycodestyle --max-line-length 100 .
5966 python${{ matrix.python-version }} -m pytest -v -s --cov=mpcontribs/client --cov-report=term-missing --cov-report=xml --ignore=bravado
6067 python${{ matrix.python-version }} -m build --outdir ../dist
61- cd ..
62-
63- - name : Install dependencies for lux
64- run : |
65- python${{ matrix.python-version }} -m pip install --upgrade pip
66- pip install -r mpcontribs-lux/requirements/requirements-${{ matrix.os }}_py${{ matrix.python-version }}_extras.txt
67-
68- - name : Run pre-commit for lux
69- run : |
70- python${{ matrix.python-version }} -m pip install pre-commit
71- pre-commit install
72- pre-commit run --files mpcontribs-lux/mpcontribs/lux/*
7368
74- - name : Test lux with pytest
69+ - name : Install lux and test with pytest
7570 run : |
7671 cd mpcontribs-lux
72+ python${{ matrix.python-version }} -m pip install -r requirements/requirements-${{ matrix.os }}_py${{ matrix.python-version }}_extras.txt
7773 python${{ matrix.python-version }} -m pip install -e .
7874 python${{ matrix.python-version }} -m pytest -n auto -x --cov=mpcontribs/lux --cov-report=xml
7975
0 commit comments