Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 16, 2020
2 parents 187e6b4 + 95ce6f3 commit a53950d
Show file tree
Hide file tree
Showing 14 changed files with 87 additions and 379 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Automated Tests

on: [push, pull_request]

jobs:
test:
strategy:
matrix:
python: [3.6, 3.8, 3.9]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: |
python -m pip install tox
- name: Run tests
run: tox

release:
needs: test
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install tox
run: |
python -m pip install tox
- name: Release
run: tox -e release
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
rev: stable
hooks:
- id: black

- repo: https://github.com/asottile/blacken-docs
rev: v1.4.0
rev: v1.8.0
hooks:
- id: blacken-docs
9 changes: 5 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: 2
python:
version: 3
extra_requirements:
- docs
pip_install: true
install:
- path: .
extra_requirements:
- docs
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

11 changes: 3 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@

.. _PyPI link: https://pypi.org/project/irc

.. image:: https://dev.azure.com/jaraco/irc/_apis/build/status/jaraco.irc?branchName=master
:target: https://dev.azure.com/jaraco/irc/_build/latest?definitionId=1&branchName=master

.. image:: https://img.shields.io/travis/jaraco/irc/master.svg
:target: https://travis-ci.org/jaraco/irc
.. image:: https://github.com/jaraco/skeleton/workflows/Automated%20Tests/badge.svg
:target: https://github.com/jaraco/skeleton/actions?query=workflow%3A%22Automated+Tests%22
:alt: Automated Tests

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code style: Black

.. .. image:: https://img.shields.io/appveyor/ci/jaraco/skeleton/master.svg
.. :target: https://ci.appveyor.com/project/jaraco/skeleton/branch/master
.. image:: https://readthedocs.org/projects/python-irc/badge/?version=latest
:target: https://python-irc.readthedocs.io/en/latest/?badge=latest

Expand Down
24 changes: 0 additions & 24 deletions appveyor.yml

This file was deleted.

94 changes: 0 additions & 94 deletions azure-pipelines.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
url='{package_url}/issues/{issue}',
),
dict(
pattern=r'^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n',
pattern=r'(?m:^((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n)',
with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n',
),
dict(
Expand Down

0 comments on commit a53950d

Please sign in to comment.