Skip to content

Commit

Permalink
update core-tests (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- authored Dec 13, 2024
1 parent f2b97f1 commit 171f172
Showing 1 changed file with 25 additions and 39 deletions.
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

0 comments on commit 171f172

Please sign in to comment.