build(deps): bump urllib3 from 2.0.4 to 2.0.7 #474
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 | |
on: | |
push: | |
branches: [main, issue-*] | |
pull_request: | |
branches: [main, issue-*] | |
jobs: | |
build: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Import GPG key used for testing | |
id: import-gpg | |
uses: crazy-max/ghaction-import-gpg@v4 | |
with: | |
gpg_private_key: ${{ secrets.TEST_GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.TEST_PASSPHRASE }} | |
git_config_global: true | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.9" | |
- name: Setup Libvips | |
run: | | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y libvips-dev | |
- name: Setup Poetry | |
run: pip3 install poetry | |
- name: Check Poetry | |
run: poetry --version | |
- name: Config Poetry for Cache | |
if: ${{ !env.ACT }} | |
run: poetry config virtualenvs.in-project true | |
- name: Cache the virtualenv | |
if: ${{ !env.ACT }} | |
uses: actions/[email protected] | |
with: | |
path: ./.venv | |
key: ${{ runner.os }}-venv-v0-${{ github.event.repository.name }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install via Poetry | |
run: poetry install | |
- name: Run Pytest Test | |
run: poetry run pytest --cov |