From 175b66f432b5e7ad73a7a12f4612ba42427a54b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Sava=C3=ABte?= Date: Thu, 30 Mar 2023 12:04:19 +0200 Subject: [PATCH] Break up CI config in 2 separate jobs --- .github/workflows/python-package.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 71cc923..9d5d449 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,7 +10,7 @@ on: branches: [ master ] jobs: - build-and-publish: + tests: runs-on: ubuntu-latest strategy: @@ -23,14 +23,17 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + - name: Install build dependencies for requests in python 3.9 # it's not clear why this is needed only for this version of python run: sudo apt-get install libxml2-dev libxslt-dev + - name: Install Poetry uses: snok/install-poetry@v1 with: # Version of Poetry to use - version: 1.2.2 + version: 1.4.1 + - name: Install dependencies run: | poetry install @@ -51,6 +54,22 @@ jobs: run: | poetry run coverage report + build-and-publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + # Version of Poetry to use + version: 1.4.1 + - name: Build distribution tarball and wheel # TODO: restrict this to master branch only run: |