-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (75 loc) · 2.09 KB
/
main.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
63
64
65
66
67
68
69
70
71
72
73
74
75
# This is a basic workflow to help you get started with Actions
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up pyenv and Python
uses: "gabrielfalcao/pyenv-action@v14"
with:
default: 2.7.18
versions: 3.8.16
command: pyenv -v
- name: Cache eggs
uses: actions/cache@v4
env:
cache-name: cache-eggs
with:
path: ~/buildout-cache/eggs
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: buildout
run: |
pip install -r requirements.txt coverage==5.3.1
buildout -c ci.cfg annotate
buildout -c ci.cfg
- name: test
run: |
bin/test
coverage:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up pyenv and Python
uses: "gabrielfalcao/pyenv-action@v14"
with:
default: 2.7.18
versions: 3.8.16
command: pyenv -v
- name: Cache eggs
uses: actions/cache@v4
env:
cache-name: cache-eggs
with:
path: ~/buildout-cache/eggs
key: ${{ runner.os }}-build-coverage-${{ env.cache-name }}
- name: buildout
run: |
pip install -r requirements.txt coverage==5.3.1
buildout -c ci.cfg annotate
buildout -c ci.cfg
- name: code-analysis
run: |
bin/code-analysis src/collective/eeafaceted/batchactions
- name: test coverage
run: |
coverage run bin/test
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Coveralls
run: |
pip3 install -U pip setuptools --no-cache-dir
pip3 install -U "coveralls>=3.0.0" coverage==5.3.1 --no-cache-dir
- name: Publish to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github