From af996372ffe13975dada76cbd7ef7ac863db34cf Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Tue, 25 Oct 2022 09:18:15 -0400 Subject: [PATCH 1/7] Update python versions in CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e19380..14a4a92 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - python: [3.7.12, 3.8.12, 3.9.10, 3.10.2] + python: [3.7.15, 3.8.14, 3.9.15, 3.10.8, 3.11.0] os: [ubuntu-latest, macos-latest] steps: From 8b5d60ed397bc33635902d3e73dfbcca632f9b90 Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Tue, 25 Oct 2022 10:10:58 -0400 Subject: [PATCH 2/7] Update pypi.yml --- .github/workflows/pypi.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index fb307fa..b3b04f3 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -1,5 +1,8 @@ name: Package Builds -on: push +on: + push: + branches: + - master jobs: build-n-publish: From 340e235f08e753ff339885af6e67ec5b97624019 Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Wed, 26 Oct 2022 09:06:01 -0400 Subject: [PATCH 3/7] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 14a4a92..8f88432 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - python: [3.7.15, 3.8.14, 3.9.15, 3.10.8, 3.11.0] + python: [3.7.15, 3.8.14, 3.9.14, 3.10.8, 3.11.0] os: [ubuntu-latest, macos-latest] steps: From 9fb3ace3048419f17385f8a90adcf85ec71ff04d Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Wed, 26 Oct 2022 09:15:48 -0400 Subject: [PATCH 4/7] Exclude macOS due to missing liblzma --- .github/workflows/main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8f88432..51ea801 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,9 +12,20 @@ jobs: runs-on: ${{ matrix.os }} strategy: + fail-fast: false + max-parallel: 10 matrix: - python: [3.7.15, 3.8.14, 3.9.14, 3.10.8, 3.11.0] + python-version: ['3.11', '3.10', '3.9', '3.8', '3.7'] os: [ubuntu-latest, macos-latest] + exclude: + # mac os: exclude all but the last two (available) python releases + - os: macos-latest + python-version: 3.8 + - os: macos-latest + python-version: 3.7 + # mac os: exclude python 3.11 since it's not yet available for runners + - os: macos-latest + python-version: 3.11 steps: - name: Checkout From 8682250193616e78aa829208b6ffbcae504280c5 Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Wed, 26 Oct 2022 09:21:08 -0400 Subject: [PATCH 5/7] Update main.yml --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 51ea801..f9f83e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,9 +38,12 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} + + - name: Install Python tools + run: python -m pip install --upgrade pip - name: Install python packages - run: pip install -r dev-requirements.txt + run: python -m pip install -r dev-requirements.txt - name: Install package run: python setup.py install From b9dbbee9cbf355fd55d10879595da886019a4d2f Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Thu, 27 Oct 2022 09:56:04 -0400 Subject: [PATCH 6/7] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9f83e5..6a5fe03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: run: python -m pip install -r dev-requirements.txt - name: Install package - run: python setup.py install + run: python -m pip install -e . - name: Cache test data uses: actions/cache@v2 From b76315bf5b4c0f14da213e8ebdfedc072fbf3a6e Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Sun, 30 Oct 2022 19:07:55 -0400 Subject: [PATCH 7/7] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6a5fe03..710ff42 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,13 +40,13 @@ jobs: python-version: ${{ matrix.python }} - name: Install Python tools - run: python -m pip install --upgrade pip + run: python3 -m pip install --upgrade pip - name: Install python packages - run: python -m pip install -r dev-requirements.txt + run: python3 -m pip install -r dev-requirements.txt - name: Install package - run: python -m pip install -e . + run: python3 -m pip install -e . - name: Cache test data uses: actions/cache@v2 @@ -55,7 +55,7 @@ jobs: key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tests/data/*') }} - name: Download test data - run: python tests/data/download_gene_fasta.py + run: python3 tests/data/download_gene_fasta.py - name: Run tests run: pytest --cov=pyfaidx --cov-report=xml tests