Merge pull request #161 from vil02/use_xenon #76
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: pip_audit | |
'on': | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '10 2 * * 1,3' | |
jobs: | |
pip_audit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Set up Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install poetry-plugin-export | |
run: | | |
poetry self add poetry-plugin-export | |
- name: Generate requirements | |
run: | | |
poetry export --format=requirements.txt --output=requirements.txt | |
poetry export --with dev --format=requirements.txt --output=dev-requirements.txt | |
- name: Run pip-audit | |
uses: pypa/[email protected] | |
with: | |
inputs: requirements.txt dev-requirements.txt | |
... |