Bump requests from 2.31.0 to 2.32.0 #157
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: Validate Pull Request | |
on: | |
pull_request: | |
jobs: | |
deploy: | |
name: Validate Pull Request (unit tests) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
function: | |
- example_function1 | |
- example_function2 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Load cached $HOME/.local | |
uses: actions/cache@v2 | |
with: | |
path: ~/.local | |
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/deploy-pr.yaml') }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.3.2 | |
virtualenvs-path: .venv | |
installer-parallel: true | |
- name: Load cached poetry venv | |
id: cached-poetry-venv | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/deploy-pr.yaml') }} | |
- name: Install dependencies using poetry (skipped on cache hit) | |
run: poetry install | |
if: steps.cached-poetry-venv.outputs.cache-hit != 'true' | |
- name: Test code using unit tests | |
run: | | |
if [ -d "tests/${{ matrix.function }}" ]; then | |
PYTHONPATH=${{ matrix.function }} poetry run pytest "tests/${{ matrix.function }}" -m "unit" | |
else | |
echo "::warning file=$(basename $0),line=$LINENO::No tests to run for ${{ matrix.function }}" | |
fi | |
# If your repo decides to rename 'common', remember to update below: | |
- name: Test util/shared code | |
run: poetry run pytest tests/common -m "unit" --suppress-no-test-exit-code |