whispering/.github/workflows/ci.yml

36 lines
840 B
YAML
Raw Normal View History

2022-09-23 10:20:11 +00:00
---
name: CI
"on": push
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Poetry Action
uses: snok/install-poetry@v1.3.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
2022-09-25 15:37:58 +00:00
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('**/package-lock.json') }}-2
2022-09-23 10:20:11 +00:00
- run: pip install poetry
- run: poetry install
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: npm
- run: npm install
- run: poetry run make -j $(nproc)