Skip to content

Try switching to GitHub Actions for continuous integration testing #1

Try switching to GitHub Actions for continuous integration testing

Try switching to GitHub Actions for continuous integration testing #1

Workflow file for this run

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"

Check failure on line 21 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Run all tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 21, Col: 13): Matrix exclude key 'numpy-version' does not match any key within the matrix .github/workflows/test.yml (Line: 23, Col: 13): Matrix exclude key 'numpy-version' does not match any key within the matrix
- 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 }}