Skip to content

Commit

Permalink
Merge pull request #31 from software-students-fall2023/newrq
Browse files Browse the repository at this point in the history
Newrq
  • Loading branch information
KeiOshima authored Dec 3, 2023
2 parents 5f109d6 + fb4275f commit 1528a8b
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/ml-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ML Tests

run-name: ${{ github.actor }} is automating using Github Actions

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

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y portaudio19-dev
sudo apt-get install -y ffmpeg
python -m pip install --upgrade pip
python -m pip install pipenv
pipenv shell --fancy --python $(which python)
pipenv install -r requirements.txt
working-directory: machine-learning-client

- name: Run tests
run: |
pipenv run pytest --cov=machine_learning_client.py ml_tests.py
working-directory: machine-learning-client/tests
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ flask-cors = "*"
requests = "*"
coverage = "*"
pytest-flask = "*"
pytest-cov = "*"

[dev-packages]

Expand Down
11 changes: 10 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.

0 comments on commit 1528a8b

Please sign in to comment.