You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
01/.github/workflows/test.yml

55 lines
1.3 KiB

name: Run Test
on:
# pull_request:
# branches: [main]
push:
concurrency:
group: "test"
cancel-in-progress: false
jobs:
pytest:
name: Run Test
11 months ago
strategy:
11 months ago
fail-fast: false
matrix:
11 months ago
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.11"]
11 months ago
defaults:
run:
working-directory: 01OS
11 months ago
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
11 months ago
- name: Install poetry
run: pipx install poetry
11 months ago
11 months ago
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
11 months ago
python-version: ${{ matrix.python-version }}
11 months ago
cache: "poetry"
11 months ago
- 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
run: |
pip install --upgrade pip
pip install poetry==1.3.2
poetry config virtualenvs.create false
poetry install --no-interaction --with dev
11 months ago
11 months ago
- name: Run Pytest
run: poetry run pytest tests