From 0a456e12aae5e57dd46e03942a15a7c670c7b392 Mon Sep 17 00:00:00 2001 From: Brian Rutledge Date: Sat, 6 Nov 2021 11:14:28 -0400 Subject: [PATCH] Reformat workflow --- .github/workflows/main.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 652bc224..e3a919c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,17 +4,16 @@ on: push: pull_request: schedule: - - cron: '0 0 * * *' # daily + - cron: "0 0 * * *" # daily jobs: - lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: "3.8" - name: Install dependencies run: python -m pip install tox - name: Run linting @@ -23,8 +22,16 @@ jobs: test: strategy: matrix: - python: ['3.6', '3.7', '3.8', '3.9', '3.10'] - platform: [ubuntu-latest, macos-latest, windows-latest] + python: + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "3.10" + platform: + - ubuntu-latest + - macos-latest + - windows-latest runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 @@ -51,21 +58,24 @@ jobs: - uses: actions/setup-python@v2 with: # Mininum supported Python version - python-version: '3.6' + python-version: "3.6" - name: Install dependencies run: python -m pip install tox - name: Build docs run: python -m tox -e docs release: - needs: [lint, test, docs] + needs: + - lint + - test + - docs if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: "3.8" - name: Install dependencies run: python -m pip install tox - name: Release