Updated vehicle type choice model to option 2 (op2) #417
This file contains hidden or 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: CI Test for Cropped Example | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| oregon_metro_cropped_example: | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| fail-fast: false | |
| name: metro-cropped-example-py${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Clone ActivitySim from SimOR_pnr branch | |
| - name: Clone ActivitySim | |
| run: | | |
| cd .. | |
| git clone --branch SimOR_pnr https://github.com/RSGInc/activitysim.git | |
| pwd | |
| ls -la | |
| # Install UV | |
| - name: Install UV | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| # Set up Python with UV | |
| - name: Set up Python | |
| run: uv python install ${{ matrix.python-version }} | |
| # Install dependencies using UV and the lock file from ActivitySim | |
| - name: Install dependencies with UV | |
| run: | | |
| cd ../activitysim | |
| uv sync --frozen | |
| uv pip install -e . --no-deps | |
| uv pip list | |
| # Run the test | |
| - name: Run Metro cropped example test | |
| run: | | |
| cd ../activitysim | |
| uv run python $GITHUB_WORKSPACE/resident/test/test_cropped_dataset_metro.py | |
| skats_cropped_example: | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| fail-fast: false | |
| name: skats-cropped-example-py${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Clone ActivitySim from SimOR_pnr branch | |
| - name: Clone ActivitySim | |
| run: | | |
| cd .. | |
| git clone --branch SimOR_pnr https://github.com/RSGInc/activitysim.git | |
| pwd | |
| ls -la | |
| # Install UV | |
| - name: Install UV | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| # Set up Python with UV | |
| - name: Set up Python | |
| run: uv python install ${{ matrix.python-version }} | |
| # Install dependencies using UV and the lock file from ActivitySim | |
| - name: Install dependencies with UV | |
| run: | | |
| cd ../activitysim | |
| uv sync --frozen | |
| uv pip install -e . --no-deps | |
| uv pip list | |
| # Run the test | |
| - name: Run SKATS cropped example test | |
| run: | | |
| cd ../activitysim | |
| uv run python $GITHUB_WORKSPACE/resident/test/test_cropped_dataset_skats.py | |
| lcog_cropped_example: | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| fail-fast: false | |
| name: lcog-cropped-example-py${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Clone ActivitySim from SimOR_pnr branch | |
| - name: Clone ActivitySim | |
| run: | | |
| cd .. | |
| git clone --branch SimOR_pnr https://github.com/RSGInc/activitysim.git | |
| pwd | |
| ls -la | |
| # Install UV | |
| - name: Install UV | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| # Set up Python with UV | |
| - name: Set up Python | |
| run: uv python install ${{ matrix.python-version }} | |
| # Install dependencies using UV and the lock file from ActivitySim | |
| - name: Install dependencies with UV | |
| run: | | |
| cd ../activitysim | |
| uv sync --frozen | |
| uv pip install -e . --no-deps | |
| uv pip list | |
| # Run the test | |
| - name: Run LCOG cropped example test | |
| run: | | |
| cd ../activitysim | |
| uv run python $GITHUB_WORKSPACE/resident/test/test_cropped_dataset_lcog.py |