chore(deps): update cryptography requirement from ~=42.0.5 to ~=42.0.8 #237
Workflow file for this run
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
# This workflow will test a Python Package when a PR is created, or updated. | |
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Package tests | |
on: | |
pull_request: | |
branches: | |
- master | |
types: | |
- opened | |
- reopened | |
- synchronize | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
strategy: | |
max-parallel: 1 | |
matrix: | |
version: ["3.8", "3.9"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-test.txt | |
pip install -e . | |
- name: Install certificates | |
run: | | |
mkdir -p certs/us | |
echo "${{ secrets.CA_CRT }}" | base64 --decode > certs/us/ca.crt | |
echo "${{ secrets.DEVO_SERVICES_CRT }}" | base64 --decode > certs/us/devo_services.crt | |
echo "${{ secrets.DEVO_SERVICES_KEY }}" | base64 --decode > certs/us/devo_services.key | |
- name: Test package | |
env: # Set up secrets as environment variable | |
DEVO_API_ADDRESS: ${{ secrets.DEVO_API_ADDRESS }} | |
DEVO_API_KEY: ${{ secrets.DEVO_API_KEY }} | |
DEVO_API_SECRET: ${{ secrets.DEVO_API_SECRET }} | |
DEVO_API_QUERYID: ${{ secrets.DEVO_API_QUERYID }} | |
DEVO_API_TOKEN: ${{ secrets.DEVO_API_TOKEN }} | |
DEVO_API_QUERY: ${{ secrets.DEVO_API_QUERY }} | |
run: | | |
echo ==== Running tests with version ${{ matrix.version }} ==== | |
export DEVO_SENDER_KEY=$(realpath certs/us/devo_services.key) | |
export DEVO_SENDER_CERT=$(realpath certs/us/devo_services.crt) | |
export DEVO_SENDER_CHAIN=$(realpath certs/us/ca.crt) | |
export TMPDIR=${PWD} | |
cd tests | |
python -m pytest |