Skip to content

Commit

Permalink
Move to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dralley authored and daviddavis committed Nov 30, 2020
1 parent e00770a commit 3f5d8a1
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 40 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ repos:
rev: stable
hooks:
- id: black
args: [--line-length=79, --safe]
language_version: python3.7
args: [--line-length=100, --safe]
language_version: python3.8
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.0
rev: 3.8.4
hooks:
- id: flake8
language_version: python3
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include VERSION
include README.rst
6 changes: 6 additions & 0 deletions dev_requirements.txt
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ requires = [
build-backend = 'setuptools.build_meta'

[tool.black]
line-length = 79
line-length = 100
14 changes: 0 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,6 @@
"pyxdg",
"requests",
],
extras_require={
"dev": [
# For `make test-coverage`
"coveralls",
# For `make auto-format-code`
"pre-commit",
# For `make docs-html` and `make docs-clean`
"sphinx",
# For `make package`
"wheel",
# For `make publish`
"twine",
]
},
entry_points={
"console_scripts": ["pulp-smash=pulp_smash.pulp_smash_cli:pulp_smash"]
},
Expand Down

0 comments on commit 3f5d8a1

Please sign in to comment.