Skip to content

Commit

Permalink
ci: smoke test for pikaraoke
Browse files Browse the repository at this point in the history
  • Loading branch information
mariugul committed Sep 3, 2024
1 parent b7cd79c commit f01e6c9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches:
- master

env:
PYTHON_VERSION: '3.9'

jobs:
code-quality:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -51,3 +54,43 @@ jobs:
steps:
- name: Run commitlint
uses: opensource-nepal/commitlint@v1

smoketest:
runs-on: ubuntu-latest
name: Smoke Test
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Cache Poetry Install
id: cache-poetry
uses: actions/cache@v4
with:
path: |
/opt/poetry
~/.cache/pypoetry
.venv
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('**/pyproject.toml')
}}

- name: Install Poetry
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
export POETRY_HOME=/opt/poetry
python3 -m venv $POETRY_HOME
$POETRY_HOME/bin/pip install poetry==1.8.2
$POETRY_HOME/bin/poetry --version
- name: Add Poetry to PATH
run: echo "/opt/poetry/bin" >> $GITHUB_PATH

- name: Install Package
run: poetry install --no-interaction --no-ansi

- name: Verify Install
run: poetry run pikaraoke --help

0 comments on commit f01e6c9

Please sign in to comment.