forked from containerbuildsystem/atomic-reactor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
- Loading branch information
Showing
6 changed files
with
139 additions
and
58 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,16 @@ | ||
name: Lint Dockerfiles | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
dockerfile-lint: | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: hadolint/hadolint:latest-debian | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Lint Dockerfiles with hadolint | ||
run: hadolint images/**/Dockerfile tests/files/**/Dockerfile |
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,116 @@ | ||
name: Run tests using test.sh | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Python ${{ matrix.os.python }} tests on ${{ matrix.os.name }}-${{ matrix.os.version }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
# - name: centos | ||
# version: 7 | ||
# python: 2 | ||
# engine: docker | ||
|
||
# - name: fedora | ||
# version: 30 | ||
# python: 3 | ||
# engine: docker | ||
|
||
- name: fedora | ||
version: 31 | ||
python: 3 | ||
engine: docker | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements_test.txt | ||
- name: test.sh | ||
env: | ||
OS: ${{ matrix.os.name }} | ||
OS_VERSION: ${{ matrix.os.version }} | ||
PYTHON_VERSION: ${{ matrix.os.python }} | ||
ENGINE: ${{ matrix.os.engine }} | ||
run: ./test.sh | ||
|
||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
pylint: | ||
name: Pylint analyzer for Python ${{ matrix.os.python }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
os: | ||
# - name: fedora | ||
# version: 29 | ||
# python: 2 | ||
# engine: docker | ||
|
||
- name: fedora | ||
version: 31 | ||
python: 3 | ||
engine: docker | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- run: ./test.sh | ||
env: | ||
OS: ${{ matrix.os.name }} | ||
OS_VERSION: ${{ matrix.os.version }} | ||
PYTHON_VERSION: ${{ matrix.os.python }} | ||
ENGINE: ${{ matrix.os.engine }} | ||
ACTION: pylint | ||
|
||
# bandit: | ||
# name: Bandit analyzer for Python ${{ matrix.os.python }} | ||
# runs-on: ubuntu-latest | ||
|
||
# strategy: | ||
# matrix: | ||
# os: | ||
# - name: centos | ||
# version: 7 | ||
# python: 2 | ||
# engine: docker | ||
|
||
# - name: fedora | ||
# version: 31 | ||
# python: 3 | ||
# engine: docker | ||
|
||
# steps: | ||
# - uses: actions/checkout@v1 | ||
|
||
# - run: ./test.sh | ||
# env: | ||
# OS: ${{ matrix.os.name }} | ||
# OS_VERSION: ${{ matrix.os.version }} | ||
# PYTHON_VERSION: ${{ matrix.os.python }} | ||
# ENGINE: ${{ matrix.os.engine }} | ||
# ACTION: bandit | ||
|
||
# markdownlint: | ||
# name: markdownlint analyzer | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/checkout@v1 | ||
|
||
# - run: ./test.sh | ||
# env: | ||
# ENGINE: docker | ||
# ACTION: markdownlint |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pytest | ||
coverage | ||
pytest-cov | ||
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