Skip to content

Commit

Permalink
Try switching to GitHub Actions for continuous integration testing
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Aug 9, 2024
1 parent 9d60f2c commit c089946
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 44 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/requirements-middle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy==1.19.4
scipy==1.5.4
2 changes: 2 additions & 0 deletions .github/workflows/requirements-newest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy==1.22.1
scipy==1.7.3
2 changes: 2 additions & 0 deletions .github/workflows/requirements-oldest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy==1.13.1
scipy==0.19.1
61 changes: 61 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Run all tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
python-version: ["3.6", "3.9", "3.10"]
req-version: ["oldest", "middle", "newest"]
os: ["ubuntu-latest"]
exclude:
- python-version: "3.6"
numpy-version: "newest"
- python-version: "3.9"
numpy-version: "oldest"
- python-version: "3.10"
numpy-version: "oldest"
- python-version: "3.10"
numpy-version: "middle"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements ${{ matrix.req-version }}
run: |
python -m pip install --upgrade pip
pip install -r .github/workflows/requirements-${{ matrix.numpy-version }}.txt
pip install pytest pytest-cov
pip install .
- name: Run tests
run: |
pytest --cov=lazyarray -v
# - name: Upload coverage data
# run: |
# coveralls --service=github
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
# COVERALLS_PARALLEL: true
# coveralls:
# name: Indicate completion to coveralls.io
# needs: test
# runs-on: ubuntu-latest
# container: python:3-slim
# steps:
# - name: Finished
# run: |
# pip3 install --upgrade coveralls
# coveralls --service=github --finish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

16 changes: 0 additions & 16 deletions bitbucket-pipelines.yml

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='lazyarray',
version='0.5.2',
version='0.5.3.dev',
py_modules=['lazyarray'],
license='Modified BSD',
author="Andrew P. Davison",
Expand Down

0 comments on commit c089946

Please sign in to comment.