Simplify YAML + better names
-name: CI
+name: MacOS
on:
push:
@@ -11,12 +11,8 @@ on:
jobs:
dev-tools:
- name: Quality Check / ${{ matrix.os }}
- runs-on: ${{ matrix.os }}-latest
-
- strategy:
- matrix:
- os: [MacOS]
+ name: Quality Check
+ runs-on: macos-latest
steps:
# Caches
@@ -39,7 +35,7 @@ jobs:
# Setup
- uses: actions/checkout@v2
- name: Set up Python 3.8
- uses: actions/setup-python@v1
+ uses: actions/setup-python@v2
with:
python-version: 3.8
@@ -50,12 +46,8 @@ jobs:
- run: python -m tox -e "lint,docs"
packaging:
- name: Packaging / ${{ matrix.os }}
- runs-on: ${{ matrix.os }}-latest
-
- strategy:
- matrix:
- os: [MacOS]
+ name: Packaging
+ runs-on: macos-latest
steps:
# Caches
@@ -74,7 +66,7 @@ jobs:
git config --global user.name "pip"
- uses: actions/checkout@v2
- name: Set up Python 3.8
- uses: actions/setup-python@v1
+ uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install tox and nox
@@ -91,15 +83,14 @@ jobs:
run: nox -s build-release -- 99.9
tests:
- name: Tests / ${{ matrix.python }} / ${{ matrix.os }}
- runs-on: ${{ matrix.os }}-latest
+ name: Tests / ${{ matrix.python }}
+ runs-on: macos-latest
needs: dev-tools
strategy:
fail-fast: false
matrix:
- os: [MacOS]
python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
steps:
@@ -114,7 +105,7 @@ jobs:
${{ runner.os }}-
# Setup
- uses: actions/checkout@v2
- - uses: actions/setup-python@v1
+ - uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
