Added caching

pull/71/head
Ajeet yadav 10 months ago
parent a83f195d4c
commit 4fc92504f4

@ -16,6 +16,9 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: ["3.9", "3.10", "3.11"] python-version: ["3.9", "3.10", "3.11"]
defaults:
run:
working-directory: 01OS
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -23,14 +26,13 @@ jobs:
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install Poetry Package - name: Install Poetry Package
working-directory: 01OS
run: | run: |
sudo apt-get install portaudio19-dev python-all-dev 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 Pre-commit - name: Run Pytest
working-directory: 01OS run: pytest tests
run: pytest test

Loading…
Cancel
Save