Skip to content

Commit 3071c94

Browse files
committed
Automate fluent.runtime on gh actions
Lesson learned, workflow bades go by workflow name. Using one workflow for the runtime package. Test the latest compat version of syntax against master, as well as master syntax against master runtime. The latter is OK to fail. Move linter from lint workflow to runtime workflow.
1 parent 60e8b67 commit 3071c94

2 files changed

Lines changed: 77 additions & 17 deletions

File tree

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: fluent.runtime
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the master branch
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
unit:
15+
name: unit tests
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, pypy2, pypy3]
20+
fluent-syntax: [0.17.0]
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
working-directory: ./fluent.runtime
28+
run: |
29+
python -m pip install wheel
30+
python -m pip install --upgrade pip
31+
python -m pip install fluent.syntax==${{ matrix.fluent-syntax }}
32+
python -m pip install . mock
33+
- name: Test
34+
working-directory: ./fluent.runtime
35+
run: |
36+
./runtests.py
37+
integration:
38+
name: unit tests
39+
runs-on: ubuntu-latest
40+
continue-on-error: true
41+
steps:
42+
- uses: actions/checkout@v2
43+
- uses: actions/setup-python@v2
44+
with:
45+
python-version: 3.7
46+
- name: Install dependencies
47+
working-directory: ./fluent.runtime
48+
run: |
49+
python -m pip install wheel
50+
python -m pip install --upgrade pip
51+
python -m pip install . mock
52+
- name: Install latest fluent.syntax
53+
working-directory: ./fluent.syntax
54+
run: |
55+
python -m pip install .
56+
- name: Test
57+
working-directory: ./fluent.runtime
58+
run: |
59+
./runtests.py
60+
61+
lint:
62+
name: flake8
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v2
66+
- uses: actions/setup-python@v2
67+
with:
68+
python-version: 3.7
69+
- name: Install dependencies
70+
run: |
71+
python -m pip install wheel
72+
python -m pip install --upgrade pip
73+
python -m pip install flake8==3.7.9
74+
- name: lint
75+
working-directory: ./fluent.runtime
76+
run: |
77+
flake8 fluent

.github/workflows/lint.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,3 @@ jobs:
2727
working-directory: ./fluent.syntax
2828
run: |
2929
flake8
30-
31-
runtime:
32-
name: flake8 runtime
33-
runs-on: ubuntu-latest
34-
steps:
35-
- uses: actions/checkout@v2
36-
- uses: actions/setup-python@v2
37-
with:
38-
python-version: 3.7
39-
- name: Install dependencies
40-
run: |
41-
python -m pip install --upgrade pip
42-
pip install flake8==3.7.9
43-
- name: lint
44-
working-directory: ./fluent.runtime
45-
run: |
46-
flake8 fluent

0 commit comments

Comments
 (0)