Skip to content

build(deps): bump urllib3 from 2.0.4 to 2.0.6 #389

build(deps): bump urllib3 from 2.0.4 to 2.0.6

build(deps): bump urllib3 from 2.0.4 to 2.0.6 #389

name: Test workflow integration using Poetry
on:
push:
branches: [main, issue-*]
pull_request:
branches: [main, issue-*]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- 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 poetry-dynamic-versioning wheel
- 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
poetry build
pip install --user "${{ github.workspace }}/dist/nautilus_librarian-$(poetry version --short)-py3-none-any.whl"
- name: Invoke Librarian
run: nautilus-librarian --version
- name: Install via Poetry (dev env)
if: ${{ env.ACT }}
run: |
poetry install
poetry build
ls "${{ github.workspace }}/dist/"
pip install --user "${{ github.workspace }}/dist/nautilus_librarian-$(poetry version --short)-py3-none-any.whl"
ls /root/.local/bin
- name: Invoke Librarian (dev env)
if: ${{ env.ACT }}
run: |
/root/.local/bin/nautilus-librarian --version