whispering/.github/workflows/ci.yml
Yuta Hayashibe 3f47282ce1 Fetch tags
2022-10-09 00:24:34 +09:00

44 lines
1,017 B
YAML

---
name: CI
on: # yamllint disable-line rule:truthy
push:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get tags
run: git fetch --tags origin
- 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: '14'
cache: npm
- run: npm install
- run: poetry run make -j $(nproc)