From b28023db316dda953f1b3ecae617b72d58afecc2 Mon Sep 17 00:00:00 2001 From: Gary Donovan Date: Thu, 24 Dec 2020 11:59:57 +1100 Subject: [PATCH] #3: [MERGE] Use poetry --- .github/workflows/validation.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 374367e..4d83d21 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -19,13 +19,20 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install Dependencies + - name: Update pip run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest + - name: Install Poetry + #uses: abatilo/actions-poetry@v2.1.0 # Pinned to SHA hash + uses: abatilo/actions-poetry@8284d202bc272a8d0597e26e1c0b4a0d0c73db93 + with: + poetry-version: 1.1.4 + - name: Install Dependencies + run: | + poetry install - name: Check Formatting run: | - black --check src tests + poetry run black --check src tests - name: Test run: | - pytest tests + poetry run pytest tests