Skip to content

Commit

Permalink
Merge pull request #42 from ActivityWatch/dev/github-actions
Browse files Browse the repository at this point in the history
ci: switched to github actions
  • Loading branch information
ErikBjare committed Apr 6, 2020
2 parents 25ae699 + 648011f commit 620b52c
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 52 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, windows-latest, macOS-latest]
python_version: [3.6]
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
poetry install
- name: Run tests
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
make test
- name: Package
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
pip install pyinstaller==3.5
make package
#- name: Upload packages
# uses: actions/upload-artifact@v2-preview
# with:
# name: builds-${{ runner.os }}
# path: dist/activitywatch-*.*

28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

65 changes: 41 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 620b52c

Please sign in to comment.