diff --git a/.github/workflows/python-app.yml b/.github/workflows/linux-app.yml similarity index 100% rename from .github/workflows/python-app.yml rename to .github/workflows/linux-app.yml diff --git a/.github/workflows/window-app.yml b/.github/workflows/window-app.yml new file mode 100644 index 0000000..be65911 --- /dev/null +++ b/.github/workflows/window-app.yml @@ -0,0 +1,37 @@ +name: Windows Application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: windows-2019 # Specify Windows 10-like environment + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: "3.8" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install wheel + if exist requirements.txt pip install -r requirements.txt + - name: Lint with flake8 + run: | + # Stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # Exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + make test + coverage xml diff --git a/README.md b/README.md index a279d92..cebfde3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # 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) +[![Build Status](https://github.com/danghoangnhan/PAMSimulator/actions/workflows/python-app.yml/badge.svg)](https://github.com/danghoangnhan/PAMSimulator/actions/workflows/linux-app.yml) + +[![Build Status](https://github.com/danghoangnhan/PAMSimulator/actions/workflows/python-app.yml/badge.svg)](https://github.com/danghoangnhan/PAMSimulator/actions/workflows/window-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.