Update cryptography requirement from ^38.0.1 to ^42.0.5 #143
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
name: Test karp-backend with Coverage | |
on: | |
push: | |
branches: | |
- "**/*" | |
paths: | |
- 'karp/**' | |
- 'tests/**' | |
- 'grammars/**' | |
- 'assets/**' | |
- '*.toml' | |
pull_request: | |
branches: | |
- "**/*" | |
paths: | |
- 'karp/**' | |
- 'tests/**' | |
- 'grammars/**' | |
- 'assets/**' | |
- '*.toml' | |
workflow_dispatch: | |
env: | |
POETRY_VERSION: 1.3.1 | |
jobs: | |
coverage: | |
name: Test coverage py-${{ matrix.python-version }} es-${{ matrix.es-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
services: | |
mariadb: | |
image: mariadb:10.3 | |
ports: | |
- 3306 | |
env: | |
MYSQL_ROOT_PASSWORD: testing | |
MYSQL_DATABASE: karp | |
MYSQL_PASSWORD: testing | |
MYSQL_USER: karp | |
options: >- | |
--health-cmd "mysqladmin ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 10 | |
strategy: | |
max-parallel: 4 | |
fail-fast: false | |
matrix: | |
python-version: ["3.10", "3.11"] | |
es-version: ["6.8.23"] | |
os: [ubuntu-latest] | |
steps: | |
#---------------------------------------------- | |
# check-out repo and set-up python | |
#---------------------------------------------- | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up python ${{ matrix.python-version }} | |
id: setup-python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
#---------------------------------------------- | |
# ----- install & configure poetry ----- | |
#---------------------------------------------- | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: ${{ env.POETRY_VERSION }} | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
#---------------------------------------------- | |
# load cached venv if cache exists | |
#---------------------------------------------- | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ env.POETRY_VERSION }}-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('.github/workflows/backend-tests.yml') }} | |
#---------------------------------------------- | |
# install dependencies if cache does not exist | |
#---------------------------------------------- | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: make install-dev | |
#---------------------------------------------- | |
# install your root project, if required | |
#---------------------------------------------- | |
# - name: Install library | |
# run: poetry install --no-interaction | |
- name: Setup up environment | |
run: cp -v .env.ci .env | |
- name: Write node info | |
run: | | |
echo "mariadb.network = ${{ job.services.mariadb.network }}" | |
echo "mariadb.ports = ${{ job.services.mariadb.ports['3306'] }}" | |
- name: Run all tests for coverage report | |
run: | | |
make cov-report=xml unit-tests-w-coverage | |
make cov-report=xml integration-tests-w-coverage | |
env: | |
DB_TEST_DATABASE: karp | |
DB_USER: karp | |
DB_PASSWORD: testing | |
DB_HOST: 127.0.0.1 | |
DB_PORT: ${{ job.services.mariadb.ports['3306'] }} | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: false | |
verbose: true |