whispering/.github/workflows/ci.yml
Yuta Hayashibe 0cd6425a4f Use node16
2022-10-10 00:16:42 +09:00

53 lines
1.2 KiB
YAML

---
name: CI
on: # yamllint disable-line rule:truthy
push:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Get tags
run: git fetch --tags origin
- uses: awalsh128/cache-apt-pkgs-action@v1.1.1
if: runner.os == 'Linux'
with:
packages: portaudio19-dev
version: 1.0
- 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
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('**/package-lock.json') }}-2
- run: pip install poetry
- run: poetry install
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: npm
- run: npm install
- run: poetry run make -j $(nproc)