Skip to content

Commit f039af2

Browse files
authored
Merge pull request #1359 from codebyaryan/fix-actions
Fix actions
2 parents efc0353 + 4769655 commit f039af2

23 files changed

+138
-191
lines changed
File renamed without changes.

.github/workflows/coveralls.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 📊 Check Coverage
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- '*.x'
7+
paths-ignore:
8+
- 'docs/**'
9+
- '*.md'
10+
- '*.rst'
11+
pull_request:
12+
branches:
13+
- master
14+
- '*.x'
15+
paths-ignore:
16+
- 'docs/**'
17+
- '*.md'
18+
- '*.rst'
19+
jobs:
20+
coveralls_finish:
21+
# check coverage increase/decrease
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Coveralls Finished
25+
uses: AndreMiras/coveralls-python-action@develop

.github/workflows/deploy.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 🚀 Deploy to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python 3.8
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.8
18+
- name: Build wheel and source tarball
19+
run: |
20+
pip install wheel
21+
python setup.py sdist bdist_wheel
22+
- name: Publish a Python distribution to PyPI
23+
uses: pypa/[email protected]
24+
with:
25+
user: __token__
26+
password: ${{ secrets.pypi_password }}

.github/workflows/lint.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 💅 Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python 3.8
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: 3.8
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install tox
19+
- name: Run lint
20+
run: tox
21+
env:
22+
TOXENV: pre-commit
23+
- name: Run mypy
24+
run: tox
25+
env:
26+
TOXENV: mypy

.github/workflows/tests.yml

-29
Original file line numberDiff line numberDiff line change
@@ -52,32 +52,3 @@ jobs:
5252

5353
- run: pip install tox
5454
- run: tox -e ${{ matrix.tox }}
55-
56-
coveralls_finish:
57-
# check coverage increase/decrease
58-
needs: tests
59-
runs-on: ubuntu-latest
60-
steps:
61-
- name: Coveralls Finished
62-
uses: AndreMiras/coveralls-python-action@develop
63-
64-
deploy:
65-
# builds and publishes to PyPi
66-
runs-on: ubuntu-latest
67-
steps:
68-
- uses: actions/checkout@v2
69-
- name: Set up Python
70-
uses: actions/setup-python@v2
71-
with:
72-
python-version: '3.7'
73-
- name: Install dependencies
74-
run: |
75-
python -m pip install --upgrade pip
76-
pip install build
77-
- name: Build package
78-
run: python -m build
79-
- name: Publish package
80-
uses: pypa/gh-action-pypi-publish@release/v1
81-
with:
82-
user: __token__
83-
password: ${{ secrets.PYPI_API_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
default_language_version:
2+
python: python3.8
3+
14
repos:
25
- repo: git://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.1.0
6+
rev: v2.3.0
47
hooks:
58
- id: check-merge-conflict
69
- id: check-json
@@ -13,16 +16,15 @@ repos:
1316
- --autofix
1417
- id: trailing-whitespace
1518
exclude: README.md
16-
- repo: https://github.com/asottile/pyupgrade
17-
rev: v1.12.0
19+
- repo: git://github.com/asottile/pyupgrade
20+
rev: v2.24.0
1821
hooks:
1922
- id: pyupgrade
20-
- repo: https://github.com/ambv/black
21-
rev: 19.10b0
23+
- repo: git://github.com/ambv/black
24+
rev: 19.3b0
2225
hooks:
23-
- id: black
24-
language_version: python3
25-
- repo: https://github.com/PyCQA/flake8
26-
rev: 3.7.8
26+
- id: black
27+
- repo: git://github.com/PyCQA/flake8
28+
rev: 3.8.4
2729
hooks:
2830
- id: flake8

0 commit comments

Comments
 (0)