logging-rs/.github/workflows/dependencies.yml
dependabot[bot] 224b7e6394
Bump actions/setup-python from 4 to 5
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-06 22:13:52 +00:00

47 lines
1.5 KiB
YAML

---
name: Dependencies
permissions: read-all
on:
push:
paths: ["dev-requirements.txt", "Cargo.toml"]
pull_request:
paths: ["dev-requirements.txt", "Cargo.toml"]
jobs:
install-python-dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies from txt files
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
install-rust-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies from Cargo.toml
run: cargo update
- name: Install dev-dependencies from Cargo.toml
run: cargo test --no-run
# ^ This is the only way to install dev-dependencies
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
if: ${{ github.event_name != 'push' }}
- name: Dependency Review
if: ${{ github.event_name != 'push' }}
uses: actions/dependency-review-action@v3