-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update ci workflows and add support for python3.10 👷 (#10)
* chore: update ci workflows and add support for python3.10 👷 * quote the python version numbers * increase the coverage * add `py` to the matrix values
- Loading branch information
Showing
12 changed files
with
253 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: linter | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
linter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Prepare | ||
run: | | ||
pip install -U pip pre-commit | ||
- name: Run linter | ||
run: | | ||
pre-commit run -a | ||
- if: failure() | ||
name: Commit linting changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: "chore: lint 🚨" | ||
new_branch: ${{ github.head_ref || github.ref_name }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: publish-pypi | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
publish-pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Prepare | ||
run: | | ||
pip install -U pip wheel | ||
- env: | ||
PACKAGE_VERSION: ${{ github.head_ref || github.ref_name }} | ||
name: Build package | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
- name: Publish PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Prepare | ||
run: | | ||
pip install -U pip tox | ||
- name: Run tests ${{ matrix.python-version }} | ||
run: | | ||
tox -e ${{ matrix.python-version }} | ||
- name: Coverage Report | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: true | ||
verbose: true | ||
strategy: | ||
matrix: | ||
python-version: | ||
- py3.6 | ||
- py3.7 | ||
- py3.8 | ||
- py3.9 | ||
- py3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,84 @@ | ||
*$py.class | ||
build | ||
build/ | ||
.cache | ||
celerybeat.pid | ||
celerybeat-schedule | ||
*.cover | ||
cover/ | ||
.coverage | ||
.tox | ||
.vscode | ||
htmlcov | ||
**/*.egg-info | ||
.coverage.* | ||
coverage.xml | ||
test/__pycache__ timeframe/__pycache__ | ||
**/*.py[cod] | ||
cython_debug/ | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
develop-eggs/ | ||
dist | ||
build | ||
dist/ | ||
.dmypy.json | ||
dmypy.json | ||
docs/_build/ | ||
downloads/ | ||
*.egg | ||
**/*.egg-info | ||
*.egg-info/ | ||
.eggs/ | ||
eggs/ | ||
.env | ||
env/ | ||
ENV/ | ||
env.bak/ | ||
htmlcov | ||
htmlcov/ | ||
.hypothesis/ | ||
.installed.cfg | ||
instance/ | ||
.ipynb_checkpoints | ||
ipython_config.py | ||
lib/ | ||
lib64/ | ||
local_settings.py | ||
*.log | ||
*.manifest | ||
MANIFEST | ||
*.mo | ||
.mypy_cache/ | ||
nosetests.xml | ||
.nox/ | ||
parts/ | ||
.pdm.toml | ||
pip-delete-this-directory.txt | ||
pip-log.txt | ||
*.pot | ||
profile_default/ | ||
.pybuilder/ | ||
__pycache__/ | ||
**/*.py[cod] | ||
*.py[cod] | ||
*.py,cover | ||
__pypackages__/ | ||
.pyre/ | ||
.pytest_cache/ | ||
.Python | ||
.pytype/ | ||
.ropeproject | ||
*.sage.py | ||
.scrapy | ||
sdist/ | ||
share/python-wheels/ | ||
/site | ||
*.so | ||
*.spec | ||
.spyderproject | ||
.spyproject | ||
target/ | ||
test/__pycache__ timeframe/__pycache__ | ||
.tox | ||
.tox/ | ||
var/ | ||
.venv | ||
venv/ | ||
venv.bak/ | ||
.vscode | ||
.webassets-cache | ||
wheels/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
stages: [commit] | ||
args: ["--profile", "black"] | ||
|
||
- repo: https://github.com/PyCQA/autoflake | ||
rev: v1.5.3 | ||
hooks: | ||
- id: autoflake | ||
stages: [commit] | ||
args: | ||
[ | ||
"-ri", | ||
"--remove-all-unused-imports", | ||
"--remove-duplicate-keys", | ||
"--ignore-init-module-imports", | ||
"--remove-unused-variables", | ||
] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.8.0 | ||
hooks: | ||
- id: black | ||
stages: [commit] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
from .timeframe import BatchTimeFrame, TimeFrame | ||
|
||
__all__ = ( | ||
BatchTimeFrame, | ||
TimeFrame, | ||
"BatchTimeFrame", | ||
"TimeFrame", | ||
) | ||
|
||
__name__ = "timeframe" | ||
__version__ = "0.1.5" | ||
__author__ = "Meysam Azad" | ||
__author_email__ = "[email protected]" |
Oops, something went wrong.