-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inspired by GitHub Actions used by Cachito.
- Loading branch information
Showing
3 changed files
with
118 additions
and
1 deletion.
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,9 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,101 @@ | ||
name: Gating | ||
|
||
on: | ||
pull_request: | ||
push: | ||
workflow_dispatch: | ||
inputs: {} | ||
|
||
jobs: | ||
tests: | ||
name: Unit tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox tox-gh-actions | ||
- name: Test with tox | ||
run: tox -e py | ||
|
||
- name: Run coveralls-python | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }} | ||
COVERALLS_PARALLEL: true | ||
run: | | ||
pip3 install --upgrade pip | ||
pip3 install --upgrade setuptools | ||
pip3 install --upgrade coveralls==3.2.0 | ||
coveralls --service=github | ||
coveralls-finish: | ||
name: Finish coveralls-python | ||
needs: tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Finished | ||
run: | | ||
pip3 install --upgrade pip | ||
pip3 install --upgrade setuptools | ||
pip3 install --upgrade coveralls | ||
coveralls --finish --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
linters: | ||
name: Linters | ||
strategy: | ||
matrix: | ||
tox_env: | ||
- bandit | ||
- lint | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Test '${{ matrix.tox_env }}' with tox | ||
run: tox -e ${{ matrix.tox_env }} | ||
|
||
hadolint: | ||
name: Hadolint | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
dockerfile: | ||
- Dockerfile | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: hadolint/hadolint-action@v1.5.0 | ||
with: | ||
dockerfile: ${{ matrix.dockerfile }} | ||
# Ignore list: | ||
# * DL3041 - Specify version with dnf install -y <package>-<version> | ||
ignore: DL3041 | ||
failure-threshold: warning |
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