forked from typeddjango/django-stubs
-
Notifications
You must be signed in to change notification settings - Fork 63
38 lines (31 loc) · 883 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Taken from: https://jacobian.org/til/github-actions-poetry/
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: |
pipx install poetry
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- uses: actions/setup-python@v4
with:
python-version: "3.7"
cache: "poetry"
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: "package.json"
cache: "yarn"
- name: Install python dependencies
run: poetry install --no-interaction
- name: Install node dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: lint
run: ./s/lint