Skip to content

Commit

Permalink
Merge pull request #197 from mdshw5/python_3.11
Browse files Browse the repository at this point in the history
Update python versions in CI
  • Loading branch information
mdshw5 authored Oct 30, 2022
2 parents 0228a1e + b76315b commit b2de92e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,20 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
max-parallel: 10
matrix:
python: [3.7.12, 3.8.12, 3.9.10, 3.10.2]
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
Expand All @@ -27,12 +38,15 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install Python tools
run: python3 -m pip install --upgrade pip

- name: Install python packages
run: pip install -r dev-requirements.txt
run: python3 -m pip install -r dev-requirements.txt

- name: Install package
run: python setup.py install
run: python3 -m pip install -e .

- name: Cache test data
uses: actions/cache@v2
Expand All @@ -41,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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Package Builds
on: push
on:
push:
branches:
- master

jobs:
build-n-publish:
Expand Down

0 comments on commit b2de92e

Please sign in to comment.