Some checks failed
Build / Test on ubuntu-latest (push) Successful in 2m4s
Examples / Test examples (ubuntu-latest, 3.10) (push) Successful in 2m16s
Lint / lint (push) Successful in 1m25s
Build / Test on macOS-latest (push) Has been cancelled
Build / Test on windows-latest (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
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.10"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'recursive'
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
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
|