-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.58 KB
/
logger-plugin-py-ci.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: logger-plugin-py-ci
on:
pull_request:
paths:
- "logger/implementations/py/**"
jobs:
ci:
name: logger-plugin-py-ci
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
working-directory: ./logger/implementations/py
- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Install dependencies
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
working-directory: ./logger/implementations/py
- name: Codegen
run: yarn codegen
working-directory: ./logger/implementations/py
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install
working-directory: ./logger/implementations/py
- name: Typecheck
run: poetry run tox -e typecheck
working-directory: ./logger/implementations/py
- name: Lint
run: poetry run tox -e lint
working-directory: ./logger/implementations/py
- name: Security
run: poetry run tox -e secure
working-directory: ./logger/implementations/py
- name: Test
run: poetry run tox
working-directory: ./logger/implementations/py