Pass boto3_session #268
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: 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 |