Skip to content

Commit

Permalink
Reformat workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bhrutledge committed Nov 6, 2021
1 parent 6884a19 commit 0a456e1
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0a456e1

Please sign in to comment.