Skip to content

Commit

Permalink
Update codacy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pabespnar authored Oct 9, 2024
1 parent bc61c3b commit b7c7a04
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Codacy CI

on:

push:
branches:
- main
Expand All @@ -9,8 +10,11 @@ on:
- main

jobs:

build:

runs-on: ubuntu-latest

services:
mysql:
image: mysql:5.7
Expand All @@ -23,20 +27,33 @@ jobs:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

strategy:
matrix:
python-version: ['3.11', '3.12']

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

- name: Check for outdated dependencies
run: |
pip list --outdated
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Security audit with pip-audit
run: |
pip install pip-audit
pip-audit || true
- name: Upload coverage to Codacy
run: |
pip install codacy-coverage
Expand Down

0 comments on commit b7c7a04

Please sign in to comment.