mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
ci: install dependencies with pip on Windows
This commit is contained in:
16
.github/workflows/tests.yml
vendored
16
.github/workflows/tests.yml
vendored
@@ -18,20 +18,22 @@ jobs:
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install Poetry
|
|
||||||
run: pipx install poetry
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: poetry install
|
shell: bash
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python -m pip install --require-hashes -r requirements.lock
|
||||||
|
python -m pip install black pip-audit coverage
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: poetry run black --check .
|
run: black --check .
|
||||||
- name: Run security audit
|
- name: Run security audit
|
||||||
run: |
|
run: |
|
||||||
poetry run pip-audit || echo "::warning::pip-audit found vulnerabilities"
|
pip-audit || echo "::warning::pip-audit found vulnerabilities"
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: |
|
run: |
|
||||||
poetry run coverage run -m pytest
|
coverage run -m pytest
|
||||||
poetry run coverage xml
|
coverage xml
|
||||||
- name: Upload coverage report
|
- name: Upload coverage report
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user