Skip to content

Commit b2d9179

Browse files
authored
Merge pull request #89 from ActivityWatch/dev/github-actions
2 parents 5d7c04f + 00246ac commit b2d9179

3 files changed

Lines changed: 44 additions & 116 deletions

File tree

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
name: Test on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
env:
14+
RELEASE: false
15+
strategy:
16+
matrix:
17+
os: [ubuntu-18.04, windows-latest, macOS-latest]
18+
python_version: [3.6]
19+
steps:
20+
- uses: actions/checkout@v2
21+
with:
22+
submodules: 'recursive'
23+
- name: Set up Python
24+
uses: actions/setup-python@v1
25+
with:
26+
python-version: ${{ matrix.python_version }}
27+
- name: Create virtualenv
28+
shell: bash
29+
run: |
30+
pip install virtualenv
31+
python -m virtualenv venv
32+
- name: Install dependencies
33+
shell: bash
34+
run: |
35+
pip install poetry
36+
source venv/bin/activate || source venv/Scripts/activate
37+
make build
38+
- name: Run tests
39+
shell: bash
40+
run: |
41+
source venv/bin/activate || source venv/Scripts/activate
42+
make test
43+
make typecheck
44+
bash <(curl -s https://codecov.io/bash)

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)