Skip to content

Commit

Permalink
converting tests to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Apr 9, 2024
1 parent 9908e61 commit d290604
Show file tree
Hide file tree
Showing 157 changed files with 6,052 additions and 203 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
name: build

on: [push, pull_request]
on: [push, workflow_dispatch]

jobs:
build:

runs-on: ubuntu-latest
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v2
with:
submodules: recursive
- name: build Docker image
run: docker build -t music-box-test . --build-arg TAG_ID=chapman
- name: run tests in container
run: docker run --name test-container -t music-box-test bash -c 'cd /music-box/build; make test'

-name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
-name : Run tests
run: |
cd tests
pytest
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
musica
musica
pandas
pytest
75 changes: 0 additions & 75 deletions test/analytical_test.py

This file was deleted.

44 changes: 0 additions & 44 deletions test/chapman_test.py

This file was deleted.

14 changes: 0 additions & 14 deletions test/data/config_example.json

This file was deleted.

20 changes: 0 additions & 20 deletions test/data/test_config.json

This file was deleted.

43 changes: 0 additions & 43 deletions test/wall_loss_test.py

This file was deleted.

Empty file added tests/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d290604

Please sign in to comment.