diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20019b8d63..8393428872 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -88,12 +88,12 @@ jobs: - name: Cache conda uses: actions/cache@v3 env: - # Increase this value to reset cache if environment-test-py37.yml has not changed + # Increase this value to reset cache if environment-test-py38.yml has not changed CACHE_NUMBER: 0 with: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ - hashFiles('conda-envs/environment-test-py37.yml') }} + hashFiles('conda-envs/environment-test-py38.yml') }} - name: Cache multiple paths uses: actions/cache@v3 env: @@ -111,20 +111,20 @@ jobs: miniforge-variant: Mambaforge miniforge-version: latest mamba-version: "*" - activate-environment: pymc-test-py37 + activate-environment: pymc-test-py38 channel-priority: strict - environment-file: conda-envs/environment-test-py37.yml + environment-file: conda-envs/environment-test-py38.yml use-mamba: true use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - name: Install-pymc run: | - conda activate pymc-test-py37 + conda activate pymc-test-py38 pip install -e . pip install --pre -U polyagamma python --version - name: Run tests run: | - conda activate pymc-test-py37 + conda activate pymc-test-py38 python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 @@ -161,7 +161,7 @@ jobs: with: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ - hashFiles('conda-envs/windows-environment-test-py38.yml') }} + hashFiles('conda-envs/windows-environment-test-py39.yml') }} - name: Cache multiple paths uses: actions/cache@v3 env: @@ -179,14 +179,14 @@ jobs: miniforge-variant: Mambaforge miniforge-version: latest mamba-version: "*" - activate-environment: pymc-test-py38 + activate-environment: pymc-test-py39 channel-priority: strict - environment-file: conda-envs/windows-environment-test-py38.yml + environment-file: conda-envs/windows-environment-test-py39.yml use-mamba: true use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - name: Install-pymc run: | - conda activate pymc-test-py38 + conda activate pymc-test-py39 pip install -e . pip install --pre -U polyagamma python --version @@ -194,7 +194,7 @@ jobs: # This job uses a cmd shell, therefore the environment variable syntax is different! # The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682). run: >- - conda activate pymc-test-py38 && + conda activate pymc-test-py39 && python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET% - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 @@ -237,7 +237,7 @@ jobs: with: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ - hashFiles('conda-envs/environment-test-py39.yml') }} + hashFiles('conda-envs/environment-test-py310.yml') }} - name: Cache multiple paths uses: actions/cache@v3 env: @@ -255,14 +255,14 @@ jobs: miniforge-variant: Mambaforge miniforge-version: latest mamba-version: "*" - activate-environment: pymc-test-py39 + activate-environment: pymc-test-py310 channel-priority: strict - environment-file: conda-envs/environment-test-py39.yml + environment-file: conda-envs/environment-test-py310.yml use-mamba: true use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - name: Install pymc run: | - conda activate pymc-test-py39 + conda activate pymc-test-py310 pip install -e . python --version - name: Run tests @@ -294,12 +294,12 @@ jobs: - name: Cache conda uses: actions/cache@v3 env: - # Increase this value to reset cache if environment-test-py39.yml has not changed + # Increase this value to reset cache if environment-test-py310.yml has not changed CACHE_NUMBER: 0 with: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ - hashFiles('conda-envs/environment-test-py39.yml') }} + hashFiles('conda-envs/environment-test-py310.yml') }} - name: Cache multiple paths uses: actions/cache@v3 env: @@ -317,19 +317,19 @@ jobs: miniforge-variant: Mambaforge miniforge-version: latest mamba-version: "*" - activate-environment: pymc-test-py39 + activate-environment: pymc-test-py310 channel-priority: strict - environment-file: conda-envs/environment-test-py39.yml + environment-file: conda-envs/environment-test-py310.yml use-mamba: true use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - name: Install pymc run: | - conda activate pymc-test-py39 + conda activate pymc-test-py310 pip install -e . python --version - name: Install jax specific dependencies run: | - conda activate pymc-test-py39 + conda activate pymc-test-py310 pip install "numpyro>=0.8.0" pip install git+https://github.com/blackjax-devs/blackjax.git@main - name: Run tests @@ -361,12 +361,12 @@ jobs: - name: Cache conda uses: actions/cache@v3 env: - # Increase this value to reset cache if conda-envs/environment-test-py38.yml has not changed + # Increase this value to reset cache if conda-envs/environment-test-py39.yml has not changed CACHE_NUMBER: 0 with: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ - hashFiles('conda-envs/windows-environment-test-py38.yml') }} + hashFiles('conda-envs/windows-environment-test-py39.yml') }} - name: Cache multiple paths uses: actions/cache@v3 env: @@ -384,14 +384,14 @@ jobs: miniforge-variant: Mambaforge miniforge-version: latest mamba-version: "*" - activate-environment: pymc-test-py38 + activate-environment: pymc-test-py39 channel-priority: strict - environment-file: conda-envs/windows-environment-test-py38.yml + environment-file: conda-envs/windows-environment-test-py39.yml use-mamba: true use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - name: Install-pymc run: | - conda activate pymc-test-py38 + conda activate pymc-test-py39 pip install -e . pip install --pre -U polyagamma python --version @@ -399,7 +399,7 @@ jobs: # This job uses a cmd shell, therefore the environment variable syntax is different! # The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682). run: >- - conda activate pymc-test-py38 && + conda activate pymc-test-py39 && python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET% - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 diff --git a/conda-envs/environment-test-py37.yml b/conda-envs/environment-dev-py310.yml similarity index 76% rename from conda-envs/environment-test-py37.yml rename to conda-envs/environment-dev-py310.yml index f2d1b52128..aec0d8c0d7 100644 --- a/conda-envs/environment-test-py37.yml +++ b/conda-envs/environment-dev-py310.yml @@ -1,5 +1,4 @@ -# "test" conda envs are used to set up our CI environment in GitHub actions -name: pymc-test-py37 +name: pymc-test-py310 channels: - conda-forge - defaults @@ -22,6 +21,6 @@ dependencies: - pytest-cov>=2.5 - pytest>=3.0 - python-graphviz -- python=3.7 +- python=3.10 - scipy>=1.4.1 - typing-extensions>=3.7.4 diff --git a/conda-envs/environment-dev-py37.yml b/conda-envs/environment-test-py310.yml similarity index 94% rename from conda-envs/environment-dev-py37.yml rename to conda-envs/environment-test-py310.yml index b441565627..b1388ec0a0 100644 --- a/conda-envs/environment-dev-py37.yml +++ b/conda-envs/environment-test-py310.yml @@ -1,5 +1,5 @@ # "dev" conda envs are to be used by devs in setting their local environments -name: pymc-dev-py37 +name: pymc-dev-py310 channels: - conda-forge - defaults @@ -24,7 +24,7 @@ dependencies: - pytest-cov>=2.5 - pytest>=3.0 - python-graphviz -- python=3.7 +- python=3.10 - scipy>=1.4.1 - sphinx-copybutton - sphinx-notfound-page