From f30e56900b9ed8575136b486432a54e01f8027b7 Mon Sep 17 00:00:00 2001 From: Claudio Ortega Date: Thu, 10 Aug 2023 23:42:48 +0000 Subject: [PATCH 1/2] Test more python and os versions --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df7e85d..c830f0f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,10 +25,11 @@ jobs: docs-folder: "docs/" build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.9, '3.10'] + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} From 9bbc24a9192fc36b7cc56b38fff34df09a31bb99 Mon Sep 17 00:00:00 2001 From: Claudio Ortega Date: Fri, 11 Aug 2023 00:00:12 +0000 Subject: [PATCH 2/2] clean and add publish pypi with manual release --- .github/workflows/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c830f0f..b4b13be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,11 +25,10 @@ jobs: docs-folder: "docs/" build: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -55,7 +54,9 @@ jobs: release: needs: [docs, build] - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + if: | + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || + (github.event_name == 'release' && contains(github.event.action, 'published')) runs-on: ubuntu-latest steps: - name: Checkout code