Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python versions in CI #197

Merged
merged 7 commits into from
Oct 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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