mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-22 14:59:25 +08:00
40 lines
941 B
YAML
40 lines
941 B
YAML
name: CI
|
|
|
|
on:
|
|
# Run on pushes and also once per day (in case deps change under us)
|
|
push:
|
|
schedule:
|
|
# Note: '*' is a special character in YAML so we have to quote the str.
|
|
- cron: '0 12 * * *'
|
|
|
|
jobs:
|
|
|
|
ci_unix:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install dependencies
|
|
run: tools/snippets install_pip_reqs
|
|
- name: Run checks and tests
|
|
run: make -j2 check test
|
|
|
|
ci_windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pytest
|
|
- name: Run tests
|
|
run: python tools/snippets pytest -v tests
|
|
|