Skip to content

Commit 620b52c

Browse files
authored
Merge pull request #42 from ActivityWatch/dev/github-actions
ci: switched to github actions
2 parents 25ae699 + 648011f commit 620b52c

3 files changed

Lines changed: 93 additions & 52 deletions

File tree

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
strategy:
14+
matrix:
15+
os: [ubuntu-18.04, windows-latest, macOS-latest]
16+
python_version: [3.6]
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: 'recursive'
21+
- name: Set up Python
22+
uses: actions/setup-python@v1
23+
with:
24+
python-version: ${{ matrix.python_version }}
25+
- name: Create virtualenv
26+
shell: bash
27+
run: |
28+
pip install virtualenv
29+
python -m virtualenv venv
30+
- name: Install dependencies
31+
shell: bash
32+
run: |
33+
pip install poetry
34+
source venv/bin/activate || source venv/Scripts/activate
35+
poetry install
36+
- name: Run tests
37+
shell: bash
38+
run: |
39+
source venv/bin/activate || source venv/Scripts/activate
40+
make test
41+
- name: Package
42+
shell: bash
43+
run: |
44+
source venv/bin/activate || source venv/Scripts/activate
45+
pip install pyinstaller==3.5
46+
make package
47+
#- name: Upload packages
48+
# uses: actions/upload-artifact@v2-preview
49+
# with:
50+
# name: builds-${{ runner.os }}
51+
# path: dist/activitywatch-*.*
52+

.travis.yml

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

poetry.lock

Lines changed: 41 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)