-
Notifications
You must be signed in to change notification settings - Fork 30
63 lines (61 loc) · 1.64 KB
/
fluent.syntax.yml
File metadata and controls
63 lines (61 loc) · 1.64 KB
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
63
name: fluent.syntax
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
paths:
- .github/workflows/fluent.syntax.yml
- "fluent.syntax/**"
- "!fluent.syntax/docs/**"
pull_request:
branches:
- main
paths:
- .github/workflows/fluent.syntax.yml
- "fluent.syntax/**"
- "!fluent.syntax/docs/**"
jobs:
unit:
name: unit tests
runs-on: ubuntu-20.04 # https://github.com/actions/setup-python/issues/544
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, pypy3.9]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
working-directory: ./fluent.syntax
run: |
python -m pip install wheel
python -m pip install --upgrade pip
python -m pip install .
- name: Test
working-directory: ./fluent.syntax
run: |
./runtests.py
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
working-directory: ./fluent.syntax
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install flake8==6 mypy==1.1.1
- name: flake8
working-directory: ./fluent.syntax
run: |
python -m flake8
- name: mypy
working-directory: ./fluent.syntax
run: |
python -m mypy fluent/