Skip to content

Commit

Permalink
Merge pull request #89 from ActivityWatch/dev/github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Apr 19, 2020
2 parents 5d7c04f + 00246ac commit b2d9179
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 116 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,44 @@
name: Build

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

jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
RELEASE: false
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
make build
- name: Run tests
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
make test
make typecheck
bash <(curl -s https://codecov.io/bash)
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

93 changes: 0 additions & 93 deletions appveyor.yml

This file was deleted.

0 comments on commit b2d9179

Please sign in to comment.