mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-07-30 20:18:11 +00:00
Add github actions CI configuration
This commit is contained in:
parent
ff68962b2a
commit
dbf8cc373d
1 changed files with 33 additions and 0 deletions
33
.github/workflows/build-and-test.yml
vendored
Normal file
33
.github/workflows/build-and-test.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: Build and Test Workflow
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
tests-and-coverage:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.7, 3.8]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install and test
|
||||
run: |
|
||||
pip install -U -r python/requirements.txt dask[dataframe] distributed
|
||||
cd python && python setup.py develop test
|
||||
python setup.py clean
|
||||
rm -rf fbprophet/stan_model
|
||||
wget https://github.com/stan-dev/cmdstan/releases/download/v2.22.1/cmdstan-2.22.1.tar.gz -O /tmp/cmdstan.tar.gz > /dev/null
|
||||
tar -xvf /tmp/cmdstan.tar.gz -C /tmp > /dev/null
|
||||
make -C /tmp/cmdstan-2.22.1/ build > /dev/null
|
||||
CMDSTAN=/tmp/cmdstan-2.22.1 STAN_BACKEND=CMDSTANPY python setup.py develop test
|
||||
Loading…
Reference in a new issue