Skip to content

Commit

Permalink
Merge pull request #79 from catalystneuro/add_installation_tests
Browse files Browse the repository at this point in the history
Add installation tests
  • Loading branch information
CodyCBakerPhD authored Sep 24, 2024
2 parents a5933e4 + f7035d8 commit 053ef75
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 3,614 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy_tests_on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Deploy tests

on:
pull_request:

concurrency: # Cancel previous workflows on the same pull request
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
TestInstallation:
uses: ./.github/workflows/installation.yml
39 changes: 39 additions & 0 deletions .github/workflows/installation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test Installation
on:
workflow_call:

jobs:
run:
# Will read on PR dashboard as 'Deploy / TestInstallation / {python-version} on {os}'
# Action dashboard identified by 'Dev tests'
# Requirement settings identified as 'TestInstallation / Python {python-version} on {os}'
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- run: git fetch --prune --unshallow --tags

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Global Setup
run: |
python -m pip install -U pip # Official recommended way
pip install pytest-xdist
- name: Install minimal package
run: pip install .

- name: Test import
run: python -c "import ibl_to_nwb"

- name: Test import
run: python -c "import ibl_to_nwb.brainwide_map"
6 changes: 1 addition & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
include LICENSE.txt
include license.txt
include README.md
include requirements.txt
include conda_environment.yaml
include *.yml
prune old_tests
prune venv
Loading

0 comments on commit 053ef75

Please sign in to comment.