added os matrix

pull/71/head
Ajeet yadav 10 months ago
parent 19eb11afbd
commit 770028e798

@ -12,29 +12,43 @@ concurrency:
jobs: jobs:
pytest: pytest:
name: Run Test name: Run Test
runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false
matrix: matrix:
python-version: ["3.9", "3.10", "3.11"] os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.11"]
defaults: defaults:
run: run:
working-directory: 01OS working-directory: 01OS
runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install poetry - name: Install poetry
run: pipx install poetry run: pipx install poetry
- name: Setup Python ${{ matrix.python-version }} - name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: "poetry" cache: "poetry"
- name: Installing Portaudio in Ubuntu
if: ${{ matrix.os }} == "ubuntu-latest"
run: sudo apt-get install portaudio19-dev python-all-dev
- name: Installing Portaudio in Mac
if: ${{ matrix.os }} == "mac-latest"
run: brew install portaudio
- name: Install Poetry Package - name: Install Poetry Package
run: | run: |
sudo apt-get install portaudio19-dev python-all-dev
pip install --upgrade pip pip install --upgrade pip
pip install poetry==1.3.2 pip install poetry==1.3.2
poetry config virtualenvs.create false poetry config virtualenvs.create false
poetry install --no-interaction --with dev poetry install --no-interaction --with dev
- name: Run Pytest - name: Run Pytest
run: poetry run pytest tests run: poetry run pytest tests

Loading…
Cancel
Save