-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes: #7881 https://pulp.plan.io/issues/7881
- Loading branch information
1 parent
e00770a
commit 3f5d8a1
Showing
7 changed files
with
54 additions
and
40 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,43 @@ | ||
--- | ||
name: pulp-smash PR CI | ||
on: pull_request | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Install dev requirements | ||
run: pip install -r dev_requirements.txt | ||
|
||
- name: Run tests | ||
run: | | ||
python setup.py test | ||
git clean -dfx | ||
# run black separately from flake8 to get a diff | ||
- name: Run black | ||
run: | | ||
black --version | ||
black --check --diff . | ||
# Lint code. | ||
- name: Run flake8 | ||
run: flake8 --config flake8.cfg | ||
|
||
# check for any files unintentionally left out of MANIFEST.in | ||
- name: Check manifest | ||
run: check-manifest | ||
|
||
- run: make all | ||
|
||
- run: pre-commit run -a -v | ||
|
||
- run: coveralls |
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 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
include VERSION | ||
include README.rst |
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,6 @@ | ||
coveralls # For `make test-coverage` | ||
pre-commit # For `make auto-format-code` | ||
sphinx # For `make docs-html` and `make docs-clean` | ||
wheel # For `make package` | ||
twine # For `make publish` | ||
black # For pre-commit hooks |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ requires = [ | |
build-backend = 'setuptools.build_meta' | ||
|
||
[tool.black] | ||
line-length = 79 | ||
line-length = 100 |
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