Skip to content

Commit

Permalink
Merge pull request #100 from sepandhaghighi/dev
Browse files Browse the repository at this point in the history
Version 1.1
  • Loading branch information
sepandhaghighi authored Jun 9, 2021
2 parents f67495b + dad8897 commit 7d98b2a
Show file tree
Hide file tree
Showing 22 changed files with 581 additions and 372 deletions.
7 changes: 4 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ Please consider the following :
4. Add standard `docstring` to your functions/methods
5. Add tests for your functions/methods (`doctest` testcases in `test` folder)
6. Pass all CI tests
7. Update `CHANGELOG.md`
7. Update `References` section in `README.md` (`MLA` format)
8. Update `CHANGELOG.md`
- Describe changes under `[Unreleased]` section
8. Update `AUTHORS.md`
9. Update `AUTHORS.md`
- Add your name under `# Other Contributors #` section
9. Submit a pull request into `dev` (please complete the pull request template)
10. Submit a pull request into `dev` (please complete the pull request template)
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
time: "01:30"
open-pull-requests-limit: 10
target-branch: dev
File renamed without changes.
53 changes: 53 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# This workflow will install Python dependencies, run tests with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: CI

on: [push, pull_request]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Installation
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python setup.py install
- name: First test
run: |
python -m pyrgg test
- name: Test requirements Installation
run: |
python otherfile/requirements-splitter.py
pip install --upgrade --upgrade-strategy=only-if-needed -r test-requirements.txt
- name: Test with pytest
run: |
python -m pytest test --cov=pyrgg --cov-report=term
- name: Version check
run: |
python otherfile/version_check.py
if: matrix.python-version == 3.7
- name: Other tests
run: |
python -m vulture pyrgg/ otherfile/ setup.py --min-confidence 65 --exclude=__init__.py --sort-by-size
python -m bandit -r pyrgg -s B311,B403
python -m pydocstyle -v --match-dir=pyrgg
if: matrix.python-version == 3.7
- name: Codecov
run: |
codecov
if: matrix.python-version == 3.7 && matrix.os == 'ubuntu-latest'
- name: cProfile
run: |
python -m cProfile -s cumtime otherfile/pyrgg_profile.py
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .travis/install.sh

This file was deleted.

27 changes: 0 additions & 27 deletions .travis/test.sh

This file was deleted.

18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [1.1] - 2021-06-09
### Added
- `requirements-splitter.py`
- `is_weighted` function
- `_write_properties_to_json` function
- `PYRGG_TEST_MODE` parameter
### Changed
- Test system modified
- JSON, YAML and Pickle formats value changed from `string` to `number`
- `properties` section added to JSON, YAML and Pickle formats
- `_write_to_json` function renamed to `_write_data_to_json`
- `logger` function modified
- `time_convert` function modified
- `branch_gen` function modified
- References updated
## [1.0] - 2021-01-11
### Added
- Number of files option
Expand Down Expand Up @@ -113,7 +128,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- JSON format
- README

[Unreleased]: https://github.com/sepandhaghighi/pyrgg/compare/v1.0...dev
[Unreleased]: https://github.com/sepandhaghighi/pyrgg/compare/v1.1...dev
[1.1]: https://github.com/sepandhaghighi/pyrgg/compare/v1.0...v1.1
[1.0]: https://github.com/sepandhaghighi/pyrgg/compare/v0.9...v1.0
[0.9]: https://github.com/sepandhaghighi/pyrgg/compare/v0.8...v0.9
[0.8]: https://github.com/sepandhaghighi/pyrgg/compare/v0.7...v0.8
Expand Down
Loading

0 comments on commit 7d98b2a

Please sign in to comment.