-
-
Notifications
You must be signed in to change notification settings - Fork 23
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 #130 from wwkimball/development
Prep release 3.5.0
- Loading branch information
Showing
50 changed files
with
3,228 additions
and
409 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,48 @@ on: | |
- release/* | ||
|
||
jobs: | ||
test-publish: | ||
validate: | ||
name: Code Quality Assessment | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [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: Set Environment Variables | ||
run: | | ||
echo "${HOME}/.gem/ruby/2.7.0/bin" >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
gem install --user-install hiera-eyaml -v 2.1.0 | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools | ||
python -m pip install --upgrade wheel | ||
python -m pip install --upgrade mypy pytest pytest-cov pytest-console-scripts pylint coveralls pep257 | ||
python -m pip install --editable . | ||
- name: Validate Compliance with PEP257 | ||
run: | | ||
pep257 yamlpath | ||
- name: Validate Compliance with MyPY | ||
run: | | ||
mypy yamlpath | ||
- name: Lint with pylint | ||
run: | | ||
pylint yamlpath | ||
- name: Unit Test with pytest | ||
run: | | ||
pytest --verbose --cov=yamlpath --cov-report=term-missing --cov-fail-under=100 --script-launch-mode=subprocess tests | ||
publish: | ||
name: Publish to TEST PyPI | ||
runs-on: ubuntu-latest | ||
environment: 'PyPI: Test' | ||
needs: validate | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -33,7 +71,7 @@ jobs: | |
python -m pip install --upgrade setuptools wheel | ||
- name: Build Artifacts | ||
run: | | ||
sed -r -e "s/(^__version__[[:space:]]*=[[:space:]]*)("'"'"[[:digit:]](\.[[:digit:]])+)"'"'"/\1\2.RC$(date "+%Y%m%d%H%M%S")"'"'"/" yamlpath/__init__.py | ||
sed -i -r -e "s/(^__version__[[:space:]]*=[[:space:]]*)("'"'"[[:digit:]](\.[[:digit:]])+)"'"'"/\1\2.RC$(date "+%Y%m%d%H%M%S")"'"'"/" yamlpath/__init__.py | ||
python setup.py sdist bdist_wheel | ||
- name: Publish Artifacts | ||
uses: pypa/[email protected] | ||
|
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.