Skip to content

Commit

Permalink
Verison 1.13.0 (#97)
Browse files Browse the repository at this point in the history
Version 1.13.0
  • Loading branch information
tolstislon authored Jan 11, 2024
1 parent b6d2899 commit 6794a11
Show file tree
Hide file tree
Showing 23 changed files with 719 additions and 226 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ indent_size = 4

# Python files
[*.py]
max_line_length = 88
max_line_length = 120
ij_python_optimize_imports_always_split_from_imports = false
ij_python_optimize_imports_case_insensitive_order = false
ij_python_optimize_imports_join_from_imports_with_same_source = true
Expand Down
56 changes: 27 additions & 29 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,34 @@

name: Tests

on:
pull_request:
branches: [ master ]
on: [ pull_request ]

jobs:
build:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev" ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pep8-naming pytest black pytest-cov responses
python -m pip install -e .
- name: Flake8
run: |
flake8 testrail_api
- name: Black
run: |
black --check testrail_api
- name: Test with pytest
run: |
pytest tests
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pep8-naming pytest black pytest-cov responses
python -m pip install -e .
- name: Flake8
run: |
flake8 testrail_api
- name: Black
run: |
black --line-length=120 --check testrail_api
- name: Test with pytest
run: |
pytest tests
13 changes: 9 additions & 4 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "==7.4.2"
pytest = "==7.4.4"
pytest-cov = "==4.1.0"
responses = "==0.21.0"
black = "==23.9.1"
flake8 = "==6.1.0"
black = "==23.12.1"
flake8 = "==7.0.0"
pep8-naming = "==0.13.3"
twine = "==4.0.2"

[packages]
requests = "==2.31.0"
testrail-api = {editable = true, path = "."}
testrail-api = { editable = true, path = "." }

[requires]
python_version = "3.11"

[pipenv]
allow_prereleases = true

[scripts]
tests = "pytest tests"
black = "black --line-length=120 ./testrail_api"
flake8 = "flake8 ./testrail_api"
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,31 @@ new_milestone = api.milestones.add_milestone(
Contributing
----
Contributions are very welcome.

###### Getting started

* python 3.11
* pipenv 2022.12.19+

1. Clone the repository
```bash
git clone https://github.com/tolstislon/testrail-api.git
cd testrail-api
```
2. Install dev dependencies
```bash
pipenv install --dev
pipenv shell
```
3. Run the black
```bash
pipenv run black
```
4. Run the flake8
```bash
pipenv run flake8
```
5. Run the tests
```bash
pipenv run tests
```
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
max-line-length = 88
max-line-length = 120
count = True
extend-ignore = E203
exclude = __version__.py
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use_scm_version={"write_to": "testrail_api/__version__.py"},
setup_requires=["setuptools_scm==7.1.0"],
install_requires=["requests>=2.20.1"],
python_requires=">=3.7",
python_requires=">=3.8",
include_package_data=True,
keywords=[
"testrail",
Expand All @@ -37,7 +37,6 @@
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
Loading

0 comments on commit 6794a11

Please sign in to comment.