Automated Latest Dependency Updates #377
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test without dev or test dependencies | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- ready_for_review | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: 3.12 test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
cache: 'pip' | |
cache-dependency-path: "pyproject.toml" | |
- name: Build trane and install latest requirements | |
run: | | |
make package | |
python -m pip install unpacked_sdist/ | |
- name: Run simple usage | |
run: | | |
import trane | |
data, metadata = trane.load_airbnb() | |
entity_columns = ["location"] | |
window_size = "2d" | |
problem_generator = trane.ProblemGenerator( | |
metadata=metadata, | |
window_size=window_size, | |
entity_columns=entity_columns | |
) | |
problems = problem_generator.generate() | |
print(f'Generated {len(problems)} problems') | |
print(problems[39]) | |
print(problems[0].create_target_values(data).head(5)) | |
shell: python |