Move test formatting at the beginning of github action

This commit is contained in:
Son NK 2020-01-30 10:54:19 +07:00
parent 2ca97368f8
commit 6af487368e
1 changed files with 11 additions and 8 deletions

View File

@ -17,19 +17,22 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest
pytest
- name: Test formatting
run: |
pip install black
black --check .
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest
pytest
- name: Publish to Docker Registry
uses: elgohr/Publish-Docker-Github-Action@master
with: