Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[repo-helper] Configuration Update #3

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
version: 2
updates:
- package-ecosystem: pip
directory: /
schedule:
interval: weekly
reviewers:
- domdfcoding
32 changes: 32 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: Flake8

on:
push:
pull_request:
branches: ["master"]

jobs:
Run:
name: "Flake8"
runs-on: "ubuntu-18.04"

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "3.8"

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

- name: "Run Flake8"
run: "python -m tox -e lint -- --format github"
37 changes: 37 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: mypy

on:
push:
pull_request:
branches: ["master"]

jobs:
Run:
name: "mypy"
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "3.6"

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

- name: "Run mypy"
run: "python -m tox -e mypy"
21 changes: 13 additions & 8 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: Windows Tests
name: Windows

on:
push:
Expand All @@ -9,30 +9,35 @@ on:

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

strategy:
fail-fast: False
matrix:
python-version: ["3.6","3.7","3.8","3.9"]
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"}

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
python-version: "${{ matrix.config.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 tox-gh-actions virtualenv

python -m pip install --upgrade tox virtualenv

- name: "Run Tests for Python ${{ matrix.python-version }}"
run: "python -m tox"
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: "python -m tox -e ${{ matrix.config.testenvs }}"
28 changes: 17 additions & 11 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: Linux Tests
name: Linux

on:
push:
Expand All @@ -9,45 +9,51 @@ on:

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

strategy:
fail-fast: False
matrix:
python-version: ["3.6","3.7","3.8","3.9"]
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"}

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
python-version: "${{ matrix.config.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 tox-gh-actions virtualenv
python -m pip install --upgrade tox virtualenv
python -m pip install --upgrade coverage_pyver_pragma

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


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


Coverage:
needs: tests
runs-on: "ubuntu-18.04"
runs-on: "ubuntu-20.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
Expand Down Expand Up @@ -91,7 +97,7 @@ jobs:
Deploy:
needs: tests

runs-on: "ubuntu-18.04"
runs-on: "ubuntu-20.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: macOS Tests
name: macOS

on:
push:
Expand All @@ -9,30 +9,35 @@ on:

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

strategy:
fail-fast: False
matrix:
python-version: ["3.6","3.7","3.8","3.9"]
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"}

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"

- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
python-version: "${{ matrix.config.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 tox-gh-actions virtualenv

python -m pip install --upgrade tox virtualenv

- name: "Run Tests for Python ${{ matrix.python-version }}"
run: "python -m tox"
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: "python -m tox -e ${{ matrix.config.testenvs }}"
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ repos:
rev: v1.7.0
hooks:
- id: python-no-eval
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.7.4
Expand Down
42 changes: 16 additions & 26 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,22 @@ tox-isolation
:widths: 10 90

* - Tests
- |travis| |actions_windows| |actions_macos| |coveralls| |codefactor| |pre_commit_ci|

- |actions_linux| |actions_windows| |actions_macos| |coveralls| |codefactor| |pre_commit_ci|
* - Activity
- |commits-latest| |commits-since| |maintained|
* - Other
- |license| |language| |requires| |pre_commit|



.. |travis| image:: https://github.com/domdfcoding/tox-isolation/workflows/Linux%20Tests/badge.svg
:target: https://github.com/domdfcoding/tox-isolation/actions?query=workflow%3A%22Linux+Tests%22
.. |actions_linux| image:: https://github.com/domdfcoding/tox-isolation/workflows/Linux/badge.svg
:target: https://github.com/domdfcoding/tox-isolation/actions?query=workflow%3A%22Linux%22
:alt: Linux Test Status

.. |actions_windows| image:: https://github.com/domdfcoding/tox-isolation/workflows/Windows%20Tests/badge.svg
:target: https://github.com/domdfcoding/tox-isolation/actions?query=workflow%3A%22Windows+Tests%22
.. |actions_windows| image:: https://github.com/domdfcoding/tox-isolation/workflows/Windows/badge.svg
:target: https://github.com/domdfcoding/tox-isolation/actions?query=workflow%3A%22Windows%22
:alt: Windows Test Status

.. |actions_macos| image:: https://github.com/domdfcoding/tox-isolation/workflows/macOS%20Tests/badge.svg
:target: https://github.com/domdfcoding/tox-isolation/actions?query=workflow%3A%22macOS+Tests%22
.. |actions_macos| image:: https://github.com/domdfcoding/tox-isolation/workflows/macOS/badge.svg
:target: https://github.com/domdfcoding/tox-isolation/actions?query=workflow%3A%22macOS%22
:alt: macOS Test Status

.. |requires| image:: https://requires.io/github/domdfcoding/tox-isolation/requirements.svg?branch=master
Expand All @@ -48,22 +45,6 @@ tox-isolation
:target: https://www.codefactor.io/repository/github/domdfcoding/tox-isolation
:alt: CodeFactor Grade

.. |pypi-version| image:: https://img.shields.io/pypi/v/tox-isolation
:target: https://pypi.org/project/tox-isolation/
:alt: PyPI - Package Version

.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/tox-isolation?logo=python&logoColor=white
:target: https://pypi.org/project/tox-isolation/
:alt: PyPI - Supported Python Versions

.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/tox-isolation
:target: https://pypi.org/project/tox-isolation/
:alt: PyPI - Supported Implementations

.. |wheel| image:: https://img.shields.io/pypi/wheel/tox-isolation
:target: https://pypi.org/project/tox-isolation/
:alt: PyPI - Wheel

.. |license| image:: https://img.shields.io/github/license/domdfcoding/tox-isolation
:target: https://github.com/domdfcoding/tox-isolation/blob/master/LICENSE
:alt: License
Expand Down Expand Up @@ -123,4 +104,13 @@ Installation
--------------

.. start installation

``tox-isolation`` can be installed from GitHub.

To install with ``pip``:

.. code-block:: bash

$ python -m pip install git+https://github.com/domdfcoding/tox-isolation

.. end installation
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ long_description_content_type = text/x-rst
platforms = Windows, macOS, Linux
url = https://github.com/domdfcoding/tox-isolation
project_urls =
Issue_Tracker = https://github.com/domdfcoding/tox-isolation/issues
Source_Code = https://github.com/domdfcoding/tox-isolation
Issue Tracker = https://github.com/domdfcoding/tox-isolation/issues
Source Code = https://github.com/domdfcoding/tox-isolation
classifiers =
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
coverage>=5.1
coverage-pyver-pragma>=0.0.6
domdf-python-tools[testing]>=1.5.0
domdf-python-tools[testing]>=1.6.0
iniconfig!=1.1.0,>=1.0.1
pytest>=6.0.0
pytest-cov>=2.8.1
Expand Down
Loading