-
Notifications
You must be signed in to change notification settings - Fork 60
52 lines (49 loc) · 1.55 KB
/
quickstart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Quickstart
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- "functime/**"
- "pyproject.toml"
- "docs/code/quickstart.py"
- ".github/workflows/quickstart.yml"
pull_request:
branches: [ "main" ]
jobs:
quickstart:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set up Rust
run: rustup show
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Create virtual environment
run: python3 -m venv venv
- name: Install functime
env:
RUSTFLAGS: -C debuginfo=0 # Do not produce debug symbols to keep memory usage down
run: |
source venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install maturin
maturin develop
- name: Install extra dependencies
run: |
source venv/bin/activate
python3 -m pip install --upgrade pip
- name: Run Quickstart
run: |
source venv/bin/activate
python docs/code/quickstart.py
python docs/code/feature_engineering.py