diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index f3d4fca..b619ab6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -1,6 +1,3 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - name: Python application on: @@ -19,15 +16,15 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: "3.8" - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + python -m pip install --upgrade pip + pip install wheel + if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names @@ -36,4 +33,5 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest + make test + coverage xml diff --git a/README.md b/README.md index 157e396..a279d92 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # PAMSimulator +[![Build Status](https://github.com/danghoangnhan/PAMSimulator/actions/workflows/python-app.yml/badge.svg)](https://github.com/danghoangnhan/PAMSimulator/actions/workflows/python-app.yml) + The PAMSimulator is a tool designed to conduct experiments based on the Perceptual Assimilation Model (PAM). This application allows researchers and linguists to create and administer PAM experiments for the study of speech sound perception and categorization.