Skip to content

Commit

Permalink
CI: Move to lint-python-action (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Mar 30, 2022
1 parent c11bc85 commit 04c2fba
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,26 @@ on:
branches: [ master ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: CERT-Polska/lint-python-action@v1
with:
source: mwdblib/
install-requirements: false
extra-requirements: "types-requests keyring"
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black==21.10b0 flake8==3.8.3 isort==5.10.1 mypy==0.910 pytest
pip install types-requests
pip install .
- run: isort --check mwdblib/
- run: black --check mwdblib/
- run: flake8 mwdblib/
- run: mypy mwdblib/

- name: Test with pytest
run: |
pytest
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: pip install .
- run: pip install pytest==5.4.1
- name: Test with pytest
run: pytest

0 comments on commit 04c2fba

Please sign in to comment.