Added comments
This commit is contained in:
parent
49a38c6720
commit
7d9dabf27e
|
@ -5,26 +5,34 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "lint"
|
group: "lint" # Concurrency group named "lint"
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-commit:
|
pre-commit:
|
||||||
name: Pre-Commit
|
name: Pre-Commit
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest # Run the job on the latest version of Ubuntu
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4 # Checkout the repository code
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11" # Set up Python version 3.11 for the job
|
||||||
|
|
||||||
|
# Install Portaudio on Ubuntu
|
||||||
|
- name: Installing Portaudio in Ubuntu
|
||||||
|
run: sudo apt-get install portaudio19-dev python-all-dev
|
||||||
|
|
||||||
- name: Install Poetry Package
|
- name: Install Poetry Package
|
||||||
working-directory: 01OS
|
working-directory: 01OS # Set the working directory to "01OS"
|
||||||
run: |
|
run: |
|
||||||
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 Pre-commit
|
- name: Run Pre-commit
|
||||||
run: pre-commit run --all-files
|
run: pre-commit run --all-files
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
name: Run Test
|
name: Run Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# pull_request:
|
push: # Trigger the workflow on push events
|
||||||
# branches: [main]
|
|
||||||
push:
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "test"
|
group: "test"
|
||||||
|
@ -18,10 +16,13 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python-version: ["3.11"]
|
python-version: ["3.11"]
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: 01OS
|
working-directory: 01OS
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -35,14 +36,17 @@ jobs:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
|
|
||||||
|
# Install Portaudio on Ubuntu
|
||||||
- name: Installing Portaudio in Ubuntu
|
- name: Installing Portaudio in Ubuntu
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: sudo apt-get install portaudio19-dev python-all-dev
|
run: sudo apt-get install portaudio19-dev python-all-dev
|
||||||
|
|
||||||
|
# Install Portaudio on macOS using Homebrew
|
||||||
- name: Installing Portaudio in Mac
|
- name: Installing Portaudio in Mac
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: brew install portaudio
|
run: brew install portaudio
|
||||||
|
|
||||||
|
# Install Poetry and project dependencies
|
||||||
- name: Install Poetry Package
|
- name: Install Poetry Package
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
|
@ -50,5 +54,6 @@ jobs:
|
||||||
poetry config virtualenvs.create false
|
poetry config virtualenvs.create false
|
||||||
poetry install --no-interaction --with dev
|
poetry install --no-interaction --with dev
|
||||||
|
|
||||||
|
# Run pytest
|
||||||
- name: Run Pytest
|
- name: Run Pytest
|
||||||
run: poetry run pytest tests
|
run: poetry run pytest tests
|
||||||
|
|
Loading…
Reference in New Issue