Skip to content

Merge pull request #1019 from secure-systems-lab/dependabot/pip/depen… #619

Merge pull request #1019 from secure-systems-lab/dependabot/pip/depen…

Merge pull request #1019 from secure-systems-lab/dependabot/pip/depen… #619

Workflow file for this run

name: Run HashiCorp Vault tests
on:
push:
pull_request:
permissions: {}
jobs:
local-vault:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout securesystemslib
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: '3.x'
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
- name: Install system dependencies
shell: bash
run: |
sudo apt update && sudo apt install -y gpg wget
wget -O- https://apt.releases.hashicorp.com/gpg | \
sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
gpg --no-default-keyring --fingerprint \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install -y vault
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade tox
- name: Run tests
run: tox -e local-vault