Skip to content

Bump cryptography from 41.0.3 to 41.0.4 in /app/imageswap-init #215

Bump cryptography from 41.0.3 to 41.0.4 in /app/imageswap-init

Bump cryptography from 41.0.3 to 41.0.4 in /app/imageswap-init #215

name: python-checks
on:
pull_request:
branches:
- master
push:
branches:
- master
# Jobs
jobs:
# Job to lint code
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.8
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
timeout-minutes: 5
run: |
python -m pip install --upgrade pip
- name: Lint with Black
timeout-minutes: 5
# Pinning Black at 19.x for now. Have seen flakey results with 20.x
run: |
pip install black==22.3.0
make ci-lint-python
# Job to execute unit tests
unit-test:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.8
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
timeout-minutes: 5
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
timeout-minutes: 5
run: |
python -m pip install --upgrade pip
pip install pipenv
export PIPENV_PIPFILE="app/imageswap/Pipfile"
pipenv install --system --deploy
export PIPENV_PIPFILE="app/imageswap-init/Pipfile"
pipenv install --system --deploy
- name: Execute Unit Tests
timeout-minutes: 5
run: |
pip install coverage
make test-python