Skip to content

Bump cryptography from 41.0.0 to 41.0.4 #530

Bump cryptography from 41.0.0 to 41.0.4

Bump cryptography from 41.0.0 to 41.0.4 #530

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
pull_request:
branches: [master]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,]
python-version: ["3.8", "3.9", "3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
shell: bash
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
- name: Install package
shell: bash
run: |
pip install -e .
- name: Run unit tests
shell: bash
run: |
pytest
- name: Run integration tests
shell: bash
env:
ADMIN_PASSWORD: admin
ADMIN_USERNAME: admin
USER_NAME: test_user1
USER_PASSWORD: test
USER2_NAME: test_user2
USER2_PASSWORD: test
run: |
mkdir data &&
mkdir data/hsdstest &&
cp admin/config/groups.default admin/config/groups.txt &&
cp admin/config/passwd.default admin/config/passwd.txt &&
echo "ADMIN_PASSWORD=admin" >> $GITHUB_ENV &&
echo "ADMIN_USERNAME=admin" >> $GITHUB_ENV &&
echo "USER_NAME=test_user1" >> $GITHUB_ENV &&
echo "USER_PASSWORD=test" >> $GITHUB_ENV &&
echo "USER2_NAME=test_user2" >> $GITHUB_ENV &&
echo "USER2_PASSWORD=test" >> $GITHUB_ENV &&
hsds --root_dir data --host localhost --port 5101 --password_file admin/config/passwd.txt --logfile hs.log --loglevel DEBUG --config_dir=admin/config --count=4 &
sleep 10 # let the nodes get ready &&
pytest tests/integ/setup_test.py
pytest tests/integ