Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update core tests #916

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 25 additions & 39 deletions .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: asim-test
use-mamba: true
python-version: ${{ matrix.python-version }}

- name: Set cache date for year and month
Expand All @@ -46,7 +44,7 @@ jobs:

- name: Update environment
run: |
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
conda env update -n asim-test -f conda-environments/github-actions-tests.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install activitysim
Expand All @@ -58,8 +56,8 @@ jobs:

- name: Conda checkup
run: |
mamba info -a
mamba list
conda info -a
conda list

- name: Lint with Black
run: |
Expand Down Expand Up @@ -111,13 +109,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: asim-test
use-mamba: true
python-version: ${{ matrix.python-version }}

- name: Set cache date for year and month
Expand All @@ -131,7 +127,7 @@ jobs:

- name: Update environment
run: |
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
conda env update -n asim-test -f conda-environments/github-actions-tests.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install activitysim
Expand All @@ -143,8 +139,8 @@ jobs:

- name: Conda checkup
run: |
mamba info -a
mamba list
conda info -a
conda list

- name: Lint with Black
run: |
Expand Down Expand Up @@ -194,13 +190,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: asim-test
use-mamba: true
python-version: ${{ env.python-version }}

- name: Set cache date for year and month
Expand All @@ -214,7 +208,7 @@ jobs:

- name: Update environment
run: |
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
conda env update -n asim-test -f conda-environments/github-actions-tests.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install activitysim
Expand All @@ -226,8 +220,8 @@ jobs:

- name: Conda checkup
run: |
mamba info -a
mamba list
conda info -a
conda list

# TODO: Cache sharrow compiled flows? The contents of __pycache__ appear to
# be ignored, so this is not working as expected right now
Expand Down Expand Up @@ -282,13 +276,11 @@ jobs:
- name: Checkout ActivitySim
uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: asim-test
use-mamba: true
python-version: ${{ env.python-version }}

- name: Set cache date for year and month
Expand All @@ -304,7 +296,7 @@ jobs:

- name: Update environment
run: |
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
conda env update -n asim-test -f conda-environments/github-actions-tests.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install activitysim
Expand All @@ -316,8 +308,8 @@ jobs:

- name: Conda checkup
run: |
mamba info -a
mamba list
conda info -a
conda list

- name: Checkout Example
uses: actions/checkout@v4
Expand Down Expand Up @@ -345,13 +337,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: asim-test
use-mamba: true
python-version: ${{ env.python-version }}

- name: Set cache date for year and month
Expand All @@ -365,7 +355,7 @@ jobs:

- name: Update environment
run: |
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
conda env update -n asim-test -f conda-environments/github-actions-tests.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install activitysim
Expand All @@ -377,8 +367,8 @@ jobs:

- name: Conda checkup
run: |
mamba info -a
mamba list
conda info -a
conda list

- name: Test Random Seed Generation
run: |
Expand All @@ -392,18 +382,16 @@ jobs:
defaults:
run:
shell: bash -l {0}
name: estimation_mode_test
name: Estimation Mode Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: asim-test
use-mamba: true
python-version: ${{ env.python-version }}

- name: Set cache date for year and month
Expand All @@ -417,7 +405,7 @@ jobs:

- name: Update environment
run: |
mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
conda env update -n asim-test -f conda-environments/github-actions-tests.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install Larch
Expand All @@ -432,8 +420,8 @@ jobs:

- name: Conda checkup
run: |
mamba info -a
mamba list
conda info -a
conda list

- name: Test Estimation Mode
run: |
Expand All @@ -458,9 +446,7 @@ jobs:
- name: Install dependencies
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
environment-file: conda-environments/docbuild.yml
python-version: "3.10"
activate-environment: docbuild
Expand Down
Loading