diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 6090c0ae..0dbff5f0 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -1,36 +1,34 @@ name: Run tests and linters - - on: - pull_request: - paths: - - '.github/workflows/python-tests.yml' - - '**.py' - - jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - architecture: x64 - - name: Install dependencies - run: | - python -m pip install --upgrade pip setuptools - pip install --progress-bar off .[lint] - - run: flake8 . --show-source --statistics - - run: black --check . - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - architecture: x64 - - name: Install dependencies - run: pip install --progress-bar off . - - run: python setup.py test +on: + pull_request: + paths: + - '.github/workflows/python-tests.yml' + - '**.py' +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + architecture: x64 + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools + pip install --progress-bar off .[lint] + - run: flake8 . --show-source + - run: black --check . + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + architecture: x64 + - name: Install dependencies + run: pip install --progress-bar off . + - run: python setup.py test