From 8d31da9851c5f9a294b1ce7954357bf6ce2aef98 Mon Sep 17 00:00:00 2001 From: chrisdicaprio Date: Mon, 24 Jul 2023 15:20:46 +1200 Subject: [PATCH] deployment updates --- .github/workflows/dev.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 87f99e0..8e87038 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -6,9 +6,9 @@ name: dev workflow on: # Triggers the workflow on push or pull request events but only for the master branch push: - branches: [ master, main ] + branches: [ main ] pull_request: - branches: [ master, main ] + branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -20,8 +20,8 @@ jobs: # The type of runner that the job will run on strategy: matrix: - python-versions: [3.8, 3.9] - os: [ubuntu-18.04] + python-versions: [3.8, 3.9, 3.10] + os: [ubuntu-latest] runs-on: ${{ matrix.os }} # Steps represent a sequence of tasks that will be executed as part of the job @@ -33,16 +33,20 @@ jobs: python-version: ${{ matrix.python-versions }} - name: Install dependencies + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + + - name: Install dependencies w Poetry run: | - python -m pip install --upgrade pip - pip install poetry tox tox-gh-actions - poetry export --dev --without-hashes > reqs.txt - pip install -r reqs.txt - pip install . + poetry install --with dev + poetry add tox-gh-actions - name: test with tox run: - tox + poetry run tox - name: list files run: ls -l .