-
-
Notifications
You must be signed in to change notification settings - Fork 45
56 lines (48 loc) · 1.19 KB
/
examples.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
name: Examples
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Test examples
runs-on: ${{ matrix.os }}
env:
RELEASE: false
strategy:
matrix:
os: [ubuntu-latest]
python_version: [3.9]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
- name: Create virtualenv
shell: bash
run: |
pip install virtualenv
python -m virtualenv venv
- name: Install dependencies
shell: bash
run: |
pip install poetry
source venv/bin/activate || source venv/Scripts/activate
make build
- name: Set up ActivityWatch
uses: ActivityWatch/setup-action@master
with:
aw-server: "aw-server"
aw-version: "v0.12.0b2"
aw-testing: false
fakedata: true
- name: Run examples
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
pip install pandas # needed for one of the examples
make test-examples