Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ on:

jobs:
tests:
name: "Python ${{ matrix.config.python-version }}"
name: "Python ${{ matrix.python-version }}"
runs-on: "windows-2019"
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9'

strategy:
fail-fast: False
matrix:
config:
- {python-version: "3.6", testenvs: "py36,build"}
- {python-version: "3.7", testenvs: "py37,build"}
- {python-version: "3.8", testenvs: "py38,build"}
- {python-version: "3.9", testenvs: "py39,build"}
python-version: ["3.6","3.7","3.8","3.9"]

steps:
- name: Checkout 🛎️
Expand All @@ -30,14 +26,14 @@ jobs:
- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.config.python-version }}"
python-version: "${{ matrix.python-version }}"

- name: Install dependencies 🔧
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv
python -m pip install --upgrade tox tox-gh-actions virtualenv

- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: "python -m tox -e ${{ matrix.config.testenvs }}"
- name: "Run Tests for Python ${{ matrix.python-version }}"
run: "python -m tox"
19 changes: 7 additions & 12 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,15 @@ on:

jobs:
tests:
name: "Python ${{ matrix.config.python-version }}"
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-18.04"
env:
USING_COVERAGE: '3.6,3.7,3.8,pypy3,3.9'

strategy:
fail-fast: False
matrix:
config:
- {python-version: "3.6", testenvs: "py36,build"}
- {python-version: "3.7", testenvs: "py37,build"}
- {python-version: "3.8", testenvs: "py38,build"}
- {python-version: "pypy3", testenvs: "pypy3,build"}
- {python-version: "3.9", testenvs: "py39,build"}
python-version: ["3.6","3.7","3.8","pypy3","3.9"]

steps:
- name: Checkout 🛎️
Expand All @@ -31,24 +26,24 @@ jobs:
- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.config.python-version }}"
python-version: "${{ matrix.python-version }}"

- name: Install dependencies 🔧
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv
python -m pip install --upgrade tox tox-gh-actions virtualenv
python -m pip install --upgrade coverage_pyver_pragma

- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: "python -m tox -e ${{ matrix.config.testenvs }}"
- name: "Run Tests for Python ${{ matrix.python-version }}"
run: "python -m tox"


- name: "Upload Coverage"
uses: actions/upload-artifact@v2
with:
name: "coverage-${{ matrix.config.python-version }}"
name: "coverage-${{ matrix.python-version }}"
path: .coverage


Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,15 @@ on:

jobs:
tests:
name: "Python ${{ matrix.config.python-version }}"
name: "Python ${{ matrix.python-version }}"
runs-on: "macos-latest"
env:
USING_COVERAGE: '3.6,3.7,3.8,pypy3,3.9'

strategy:
fail-fast: False
matrix:
config:
- {python-version: "3.6", testenvs: "py36,build"}
- {python-version: "3.7", testenvs: "py37,build"}
- {python-version: "3.8", testenvs: "py38,build"}
- {python-version: "pypy3", testenvs: "pypy3,build"}
- {python-version: "3.9", testenvs: "py39,build"}
python-version: ["3.6","3.7","3.8","pypy3","3.9"]

steps:
- name: Checkout 🛎️
Expand All @@ -31,14 +26,14 @@ jobs:
- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.config.python-version }}"
python-version: "${{ matrix.python-version }}"

- name: Install dependencies 🔧
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv
python -m pip install --upgrade tox tox-gh-actions virtualenv

- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: "python -m tox -e ${{ matrix.config.testenvs }}"
- name: "Run Tests for Python ${{ matrix.python-version }}"
run: "python -m tox"
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cov = py36, coverage

[gh-actions]
python =
3.6: py36, build
3.6: py36, build, mypy
3.7: py37, build
3.8: py38, build
pypy3: pypy3, build
Expand Down