Skip to content

Commit

Permalink
Update structure and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
clintaire committed Sep 19, 2024
1 parent 20daf5d commit 4e219c3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/python-checkers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,34 @@ on:
push:
branches:
- main
- PyGC
pull_request:
branches:
- main
- PyGC

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run tests
run: |
PYTHONPATH=. pytest tests/
- name: Run tests
run: |
PYTHONPATH=. pytest tests/
41 changes: 41 additions & 0 deletions .github/workflows/security-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Security Checks

on:
push:
branches:
- main
- PyGC
pull_request:
branches:
- main
- PyGC

jobs:
security:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Bandit and Safety
run: |
python -m pip install --upgrade pip
pip install bandit safety
- name: Run Bandit for security linting
run: |
bandit -r bot/
- name: Check for vulnerable dependencies with Safety
run: |
safety check --full-report

0 comments on commit 4e219c3

Please sign in to comment.