Skip to content

Pass boto3_session #268

Pass boto3_session

Pass boto3_session #268

Workflow file for this run

name: Run tests with package dependencies
on: pull_request
jobs:
python-version-run-tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10"]
poetry-install: [from-lock-file, fresh-install]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies ${{ matrix.poetry-install }}
run: |
if [ "${{ matrix.poetry-install }}" == "from-lock-file" ]; then
echo "Installing dependencies from lock file"
else
echo "Removing lock file and installing latest possible dependencies"
rm poetry.lock
fi
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
- name: Run Tests
run: |
pytest tests/ -vv