build(deps): update numpy requirement from <2.0.0 to <3.0.0 #329
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
name: Dependency Audit | |
on: | |
push: | |
paths: | |
- '**/requirements.txt' | |
pull_request: | |
paths: | |
- '**/requirements.txt' | |
schedule: | |
- cron: '0 0 * * *' # Run daily at midnight UTC | |
jobs: | |
audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pip-audit | |
- name: Run pip-audit | |
run: | | |
pip-audit -r requirements.txt > audit_output.txt | |
continue-on-error: true | |
- name: Display audit results | |
run: cat audit_output.txt | |
- name: Create detailed report | |
run: | | |
echo "Pip Audit Report" > detailed_report.txt | |
echo "==================" >> detailed_report.txt | |
echo "" >> detailed_report.txt | |
echo "Date: $(date)" >> detailed_report.txt | |
echo "" >> detailed_report.txt | |
echo "Audit Results:" >> detailed_report.txt | |
cat audit_output.txt >> detailed_report.txt | |
echo "" >> detailed_report.txt | |
echo "Environment:" >> detailed_report.txt | |
python --version >> detailed_report.txt | |
pip --version >> detailed_report.txt | |
echo "" >> detailed_report.txt | |
echo "Requirements:" >> detailed_report.txt | |
cat requirements.txt >> detailed_report.txt | |
- name: Upload audit results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pip-audit-report | |
path: detailed_report.txt | |