Skip to content

Commit

Permalink
Add initial test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfolgado committed Jun 29, 2024
1 parent 9412b21 commit c0580db
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "Tests"

on:
push:
pull_request:
types: [ opened, synchronize, reopened ]

jobs:
test:
name: Run template tests
strategy:
max-parallel: 4
fail-fast: false
matrix:
python-version: [ '3.8', '3.9' ]
platform: [ 'ubuntu-20.04', 'macos-latest', 'windows-latest' ]
runs-on: ${{ matrix.platform }}
timeout-minutes: 30

steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Extract branch name
run: echo running on branch ${GITHUB_REF##*/}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -VV
python -m pip install --upgrade pip setuptools
pip install -r requirements/requirements.txt
python -m pip install .
- name: Check numpy and scipy flags
run: |
python -c "import numpy as np; np.show_config()"
python -c "import scipy as sp; sp.show_config()"
- name: Run tests
run: |
python tests/test_features.py

0 comments on commit c0580db

Please sign in to comment.