-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from Santandersecurityresearch/develop
Merge dev to master
- Loading branch information
Showing
44 changed files
with
2,727 additions
and
1,724 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
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,6 +1,6 @@ | ||
name: Dr Header Release Task | ||
|
||
on: | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
|
@@ -12,19 +12,21 @@ jobs: | |
matrix: | ||
python-version: [3.7] | ||
steps: | ||
- name: Checkout Code | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: pip install -r requirements_dev.txt | ||
|
||
- name: Test with Nosetests | ||
run: python -m nose --with-xunit --xunit-file=${{ matrix.python-version }}.results.xml | ||
run: | | ||
pip install -r requirements.txt | ||
pip install -r requirements_dev.txt | ||
- name: Test with pytest | ||
run: python -m pytest --junitxml ${{ matrix.python-version }}.results.xml | ||
|
||
- name: Flake8 styles | ||
run: python -m flake8 drheader | ||
|
@@ -38,12 +40,12 @@ jobs: | |
- name: Make Wheel | ||
run: | | ||
python3 setup.py sdist bdist_wheel | ||
- name: Dump build info for release | ||
run: | | ||
git log --pretty=oneline > changelog | ||
python3 setup.py --version > version | ||
python3 setup.py --version > version | ||
- name: Get bumpversion | ||
run: echo "VERSION"=$(grep -i 'current_version = ' setup.cfg | head -1 | tr -d 'current_version = ') >> $GITHUB_ENV | ||
|
||
|
@@ -57,25 +59,25 @@ jobs: | |
release_name: Release v${{ env.VERSION }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Wheel | ||
id: upload_wheel | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./dist/drheader-${{ env.VERSION }}-py2.py3-none-any.whl | ||
asset_name: DrHeader Wheel | ||
asset_content_type: application/x-python-wheel | ||
|
||
- name: Upload Changelog | ||
id: upload_changelog | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: changelog | ||
asset_name: DrHeader changelog | ||
asset_content_type: text/plain | ||
|
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 |
---|---|---|
|
@@ -56,34 +56,34 @@ Ready to contribute? Here's how to set up | |
1. Fork the <span class="title-ref">drheader</span> repo on GitHub. | ||
|
||
2. Clone your fork locally: | ||
|
||
$ git clone [email protected]:your_name_here/drheader.git | ||
|
||
3. Install your local copy into a virtualenv. Assuming you have | ||
virtualenvwrapper installed, this is how you set up your fork for | ||
local development: | ||
|
||
$ mkvirtualenv drheader | ||
$ cd drheader/ | ||
$ python setup.py develop | ||
|
||
4. Create a branch for local development: | ||
|
||
$ git checkout -b name-of-your-bugfix-or-feature | ||
|
||
Now you can make your changes locally. | ||
|
||
5. When you're done making changes, check that your changes pass flake8 | ||
and the tests, including testing other Python versions with tox: | ||
|
||
$ flake8 drheader tests | ||
$ python setup.py test or py.test | ||
$ py.test | ||
$ tox | ||
|
||
To get flake8 and tox, just pip install them into your virtualenv. | ||
|
||
6. Commit your changes and push your branch to GitHub: | ||
|
||
$ git add . | ||
$ git commit -m "Your detailed description of your changes." | ||
$ git push origin name-of-your-bugfix-or-feature | ||
|
@@ -95,8 +95,8 @@ Ready to contribute? Here's how to set up | |
When submitting a pull request, please ensure that: | ||
|
||
1. You submit it to 'develop' branch and there's no conflicts. | ||
2. You check all tests are passing and have created new ones if change not covered in current test suite. | ||
2. You check all tests are passing and have created new ones if change not covered in current test suite. | ||
3. You update `README.md` if functionality has been added or modified. If you are creating new classes or methods, please use docstring to document the code. | ||
4. You update `RULES.md` when extending or modifying the way rules can be used, adding documentation and examples for the new/modified feature. | ||
4. You update `RULES.md` when extending or modifying the way rules can be used, adding documentation and examples for the new/modified feature. | ||
5. Code works for Python >= 3.7 | ||
6. Once PR is submitted, workflow steps are successful (e.g.: Flake8, Bandit, Safety, etc.) |
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
Oops, something went wrong.