Skip to content

Commit

Permalink
Merge pull request #49 from febus982/update-bootstrap
Browse files Browse the repository at this point in the history
Port bootstrap repository CI improvements
  • Loading branch information
febus982 authored Jan 27, 2024
2 parents 46f6184 + 3ff68be commit 870d121
Show file tree
Hide file tree
Showing 29 changed files with 848 additions and 298 deletions.
404 changes: 404 additions & 0 deletions .bandit.yml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: "2"
plugins:
bandit:
enabled: true
sonar-python:
enabled: true
11 changes: 0 additions & 11 deletions .coveragerc

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/github-pages-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy static content to Pages

on:
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


jobs:
site:
permissions:
contents: write
uses: ./.github/workflows/reusable-github-pages.yml
with:
site-version: "dev"
51 changes: 0 additions & 51 deletions .github/workflows/github-pages.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/python-3.10.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/python-3.11.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/python-3.8.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/python-3.9.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/python-bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Bandit checks

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
bandit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Security check - Bandit
uses: ioggstream/[email protected]
with:
project_path: .
config_file: .bandit.yml

# This is optional
- name: Security check report artifacts
uses: actions/upload-artifact@v1
with:
name: Security report
path: output/security_report.txt
4 changes: 3 additions & 1 deletion .github/workflows/python-code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
quality:
Expand All @@ -16,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/python-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
quality:
Expand All @@ -16,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/python-publish.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/python-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
quality:
Expand All @@ -16,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python 3.12
name: Python tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v4
with:
python-version: "3.12"
python-version: "${{ matrix.version }}"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
Loading

0 comments on commit 870d121

Please sign in to comment.