Skip to content

Added python3.10 env #5638

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

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
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
54 changes: 27 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -179,22 +179,22 @@ 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
- name: Run tests
# 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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -384,22 +384,22 @@ 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
- name: Run tests
# 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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down