Skip to content

Commit 61ce8e0

Browse files
committed
Add the project skeleton files (no useful content)
Signed-off-by: Sergey Vasilyev <[email protected]>
1 parent f385fd5 commit 61ce8e0

20 files changed

+425
-0
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: off

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Who is automatically assigned to the new PRs based on their content.
2+
* @nolar

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: nolar

.github/ISSUE_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Long story short
2+
3+
<!-- Please describe the issue in 1-3 sentences. -->
4+
5+
6+
## Description
7+
8+
<!-- Please provide as much information as possible.
9+
Lack of information may result in a delayed response. Thank you! -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
Thank you for contributing! Please make sure that your code changes
3+
are covered with tests. And in case of new features or big changes
4+
remember to adjust the documentation.
5+
6+
Feel free to ping maintainers for the review!
7+
8+
In case of existing issue, reference it using one of the following:
9+
10+
closes: #ISSUE
11+
related: #ISSUE
12+
13+
How to write a good git commit message:
14+
http://chris.beams.io/posts/git-commit/
15+
-->

.github/workflows/ci.yaml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
- release/**
7+
workflow_dispatch: {}
8+
9+
jobs:
10+
linters:
11+
name: Linting and static analysis
12+
runs-on: ubuntu-20.04
13+
timeout-minutes: 5
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.10"
19+
- run: pip install -r requirements.txt
20+
- run: pre-commit run --all-files
21+
- run: mypy pytest_instant --strict
22+
23+
unit-tests:
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
28+
name: Python ${{ matrix.python-version }}
29+
runs-on: ubuntu-20.04
30+
timeout-minutes: 5
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/setup-python@v2
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
37+
- run: pip install -r requirements.txt
38+
- run: pip install -e .
39+
- run: pytest --color=yes --cov=pytest_instant --cov-branch
40+
41+
- name: Publish coverage to Coveralls.io
42+
if: success()
43+
run: coveralls --service=github
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.github_token }}
46+
continue-on-error: true
47+
- name: Publish coverage to CodeCov.io
48+
uses: codecov/codecov-action@v1
49+
if: success()
50+
env:
51+
PYTHON: ${{ matrix.python-version }}
52+
with:
53+
flags: unit
54+
env_vars: PYTHON
55+
continue-on-error: true
56+
57+
# No coverage: PyPy performs extremely poorly with tracing/coverage.
58+
pypy-tests:
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
python-version: [ "pypy-3.7", "pypy-3.8" ]
63+
name: Python ${{ matrix.python-version }}
64+
runs-on: ubuntu-20.04
65+
timeout-minutes: 5
66+
steps:
67+
- uses: actions/checkout@v2
68+
- uses: actions/setup-python@v2
69+
with:
70+
python-version: ${{ matrix.python-version }}
71+
72+
- run: pip install -r requirements.txt
73+
- run: pip install -e .
74+
- run: pytest --color=yes --no-cov
75+
76+
coveralls-finish:
77+
name: Finalize coveralls.io
78+
needs: [unit-tests]
79+
runs-on: ubuntu-20.04
80+
steps:
81+
- uses: actions/setup-python@v2
82+
- run: pip install coveralls
83+
- run: coveralls --service=github --finish
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.github_token }}
86+
continue-on-error: true

.github/workflows/publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to PyPI
2+
on:
3+
release:
4+
types:
5+
- published
6+
# push:
7+
# tags:
8+
# - "[0-9]+.[0-9]+*"
9+
workflow_dispatch: {}
10+
11+
jobs:
12+
publish:
13+
name: Build and publish
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.10"
20+
- run: pip install --upgrade setuptools wheel twine
21+
- run: python setup.py sdist bdist_wheel
22+
- uses: pypa/gh-action-pypi-publish@release/v1
23+
with:
24+
user: __token__
25+
password: ${{ secrets.pypi_token }}
26+
skip_existing: true

.github/workflows/thorough.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Thorough tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- release/**
7+
schedule:
8+
- cron: "13 3 * * 6"
9+
workflow_dispatch: {}
10+
11+
jobs:
12+
linters:
13+
name: Linting and static analysis
14+
runs-on: ubuntu-20.04
15+
timeout-minutes: 5
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-python@v2
19+
with:
20+
python-version: "3.10"
21+
- run: pip install -r requirements.txt
22+
- run: pre-commit run --all-files
23+
- run: mypy pytest_instant --strict
24+
25+
unit-tests:
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
30+
name: Python ${{ matrix.python-version }}
31+
runs-on: ubuntu-20.04
32+
timeout-minutes: 5
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
39+
- run: pip install -r requirements.txt
40+
- run: pip install -e .
41+
- run: pytest --color=yes --cov=pytest_instant --cov-branch
42+
43+
- name: Publish coverage to Coveralls.io
44+
if: success()
45+
run: coveralls --service=github
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.github_token }}
48+
continue-on-error: true
49+
- name: Publish coverage to CodeCov.io
50+
uses: codecov/codecov-action@v1
51+
if: success()
52+
env:
53+
PYTHON: ${{ matrix.python-version }}
54+
with:
55+
flags: unit
56+
env_vars: PYTHON
57+
continue-on-error: true
58+
59+
# No coverage: PyPy performs extremely poorly with tracing/coverage.
60+
pypy-tests:
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
python-version: [ "pypy-3.7", "pypy-3.8" ]
65+
name: Python ${{ matrix.python-version }}
66+
runs-on: ubuntu-20.04
67+
timeout-minutes: 5
68+
steps:
69+
- uses: actions/checkout@v2
70+
- uses: actions/setup-python@v2
71+
with:
72+
python-version: ${{ matrix.python-version }}
73+
74+
- run: pip install -r requirements.txt
75+
- run: pip install -e .
76+
- run: pytest --color=yes --no-cov
77+
78+
coveralls-finish:
79+
name: Finalize coveralls.io
80+
needs: [unit-tests]
81+
runs-on: ubuntu-20.04
82+
steps:
83+
- uses: actions/setup-python@v2
84+
- run: pip install coveralls
85+
- run: coveralls --service=github --finish
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.github_token }}
88+
continue-on-error: true

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# Distribution / packaging
6+
build/
7+
dist/
8+
.eggs/
9+
*.egg-info/
10+
*.egg
11+
12+
# Unit test / coverage reports
13+
htmlcov/
14+
.tox/
15+
.coverage
16+
.coverage.*
17+
.cache
18+
.pytest_cache
19+
nosetests.xml
20+
coverage.xml
21+
junit.xml
22+
*.cover
23+
.hypothesis/
24+
.mypy_cache
25+
26+
# Documentation
27+
docs/_build
28+
docs/packages
29+
30+
# VirtualEnv
31+
env
32+
33+
# VSCode
34+
.vscode

.isort.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[settings]
2+
line_length = 100
3+
multi_line_output = 11
4+
balanced_wrapping = true
5+
combine_as_imports = true
6+
case_sensitive = true

0 commit comments

Comments
 (0)