-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (61 loc) · 1.67 KB
/
tests.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
on: [push]
jobs:
node:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- macos-11
- windows-2019
node_version:
- "18"
- "20"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
- name: Install packages
run: yarn install
- name: Tests on ${{ matrix.os }} with Node ${{ matrix.node_version }}
run: yarn test
coverage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: "18"
- name: Install packages
run: yarn install
- name: Run eslint
run: yarn lint:js
- name: Run lint:ts
run: yarn lint:ts
- name: Run coverage
run: yarn coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.11"
- name: Install and configure poetry
run: |
python -m pip install poetry
python -m poetry config virtualenvs.create false
- name: Install python packages
run: python -m poetry install
- name: Run python linters
run: |
python -m poetry run black --check run-ci.py
python -m poetry run flake8 run-ci.py
python -m poetry run isort --check --profile black run-ci.py
python -m poetry run mypy run-ci.py