Skip to content

Commit 98442a9

Browse files
committed
Update package and ci actions
1 parent 610a5ed commit 98442a9

File tree

5 files changed

+58
-43
lines changed

5 files changed

+58
-43
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
- package-ecosystem: github-actions
8+
directory: "/"
9+
schedule:
10+
interval: weekly

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
11+
PyTest:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version:
16+
- "3.8"
17+
- "3.9"
18+
- "3.10"
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- run: python -m pip install --upgrade pip setuptools codecov
26+
- run: python -m pip install -e .[test]
27+
- run: relint **
28+
- run: py.test --cov=.
29+
- uses: codecov/codecov-action@v3

.github/workflows/release.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
name: PyPi Release
1+
name: Release
22

3-
on: [release]
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
6-
build:
78

9+
PyPi:
810
runs-on: ubuntu-latest
911
steps:
10-
- uses: actions/checkout@v1
11-
- uses: actions/setup-python@v1
12-
- name: Install dependencies
13-
run: python -m pip install --upgrade pip setuptools wheel twine
14-
- name: Build dist packages
15-
run: python setup.py sdist bdist_wheel
16-
- name: Upload packages
17-
run: python -m twine upload dist/*
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: "3.10"
16+
- run: python -m pip install --upgrade pip build wheel twine
17+
- run: python -m build --sdist --wheel
18+
- run: python -m twine upload dist/*
1819
env:
1920
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
2021
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

.github/workflows/tests.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

setup.cfg

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[metadata]
22
name = relint
3-
author = Johannes Hoppe
4-
author_email = [email protected]
3+
author = Johannes Maron
4+
author_email = [email protected]
55
description = Write your own linting rules using regular expressions
66
long_description = file: README.rst
77
url = https://github.com/codingjoe/relint
88
license = MIT
99
license_file = LICENSE
1010
classifier =
11-
Development Status :: 4 - Beta
11+
Development Status :: 5 - Production/Stable
1212
Environment :: Console
1313
Intended Audience :: Developers
1414
License :: OSI Approved :: MIT License
@@ -25,12 +25,13 @@ keywords =
2525
install_requires = PyYAML
2626
setup_requires =
2727
setuptools_scm
28-
pytest-runner
29-
tests_require =
28+
py_modules = relint
29+
30+
[options.extras_require]
31+
test =
3032
pytest
3133
pytest-cov
3234
pytest-mock
33-
py_modules = relint
3435

3536
[options.entry_points]
3637
console_scripts =

0 commit comments

Comments
 (0)