From 117c56482909cea28418773f486c6c4bc6bf6574 Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Thu, 26 Nov 2020 10:17:51 +0000 Subject: [PATCH 1/4] put test_distributions in separate job --- .github/workflows/pytest.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 66474705a9..5b226d0c79 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -30,6 +30,7 @@ jobs: --ignore=pymc3/tests/test_gp.py --ignore=pymc3/tests/test_shape_handling --ignore=pymc3/tests/test_quadpotential.py + --ignore=pymc3/tests/test_distributions.py - | pymc3/tests/test_distributions_random.py pymc3/tests/test_shared.py @@ -49,6 +50,8 @@ jobs: pymc3/tests/test_variational_inference.py pymc3/tests/test_updates.py pymc3/tests/test_shape_handling.py + - | + pymc3/tests/test_distributions.py runs-on: ${{ matrix.os }} env: TEST_SUBSET: ${{ matrix.test-subset }} From a72e1f9f15d28ad0745f50cc01a8915ff1c9e2fa Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Thu, 26 Nov 2020 10:27:29 +0000 Subject: [PATCH 2/4] :art: sort --- .github/workflows/pytest.yml | 40 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 5b226d0c79..551bf98b2e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -14,42 +14,42 @@ jobs: floatx: [float32, float64] test-subset: - | - --ignore=pymc3/tests/test_examples.py - --ignore=pymc3/tests/test_distributions_random.py - --ignore=pymc3/tests/test_variational_inference.py - --ignore=pymc3/tests/test_shared.py - --ignore=pymc3/tests/test_smc.py - --ignore=pymc3/tests/test_updates.py - --ignore=pymc3/tests/test_posteriors.py - --ignore=pymc3/tests/test_sampling.py - --ignore=pymc3/tests/test_parallel_sampling.py --ignore=pymc3/tests/test_dist_math.py --ignore=pymc3/tests/test_distribution_defaults.py + --ignore=pymc3/tests/test_distributions.py + --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_distributions_timeseries.py - --ignore=pymc3/tests/test_random.py + --ignore=pymc3/tests/test_examples.py --ignore=pymc3/tests/test_gp.py - --ignore=pymc3/tests/test_shape_handling + --ignore=pymc3/tests/test_parallel_sampling.py + --ignore=pymc3/tests/test_posteriors.py --ignore=pymc3/tests/test_quadpotential.py - --ignore=pymc3/tests/test_distributions.py + --ignore=pymc3/tests/test_random.py + --ignore=pymc3/tests/test_sampling.py + --ignore=pymc3/tests/test_shape_handling + --ignore=pymc3/tests/test_shared.py + --ignore=pymc3/tests/test_smc.py + --ignore=pymc3/tests/test_updates.py + --ignore=pymc3/tests/test_variational_inference.py - | - pymc3/tests/test_distributions_random.py - pymc3/tests/test_shared.py - pymc3/tests/test_smc.py - pymc3/tests/test_sampling.py - pymc3/tests/test_parallel_sampling.py pymc3/tests/test_dist_math.py pymc3/tests/test_distribution_defaults.py + pymc3/tests/test_distributions_random.py pymc3/tests/test_distributions_timeseries.py + pymc3/tests/test_parallel_sampling.py pymc3/tests/test_random.py + pymc3/tests/test_sampling.py + pymc3/tests/test_shared.py + pymc3/tests/test_smc.py - | pymc3/tests/test_examples.py - pymc3/tests/test_posteriors.py pymc3/tests/test_gp.py + pymc3/tests/test_posteriors.py pymc3/tests/test_quadpotential.py - | - pymc3/tests/test_variational_inference.py - pymc3/tests/test_updates.py pymc3/tests/test_shape_handling.py + pymc3/tests/test_updates.py + pymc3/tests/test_variational_inference.py - | pymc3/tests/test_distributions.py runs-on: ${{ matrix.os }} From d37b7b7e64a87f31c6928364405cf7d00b653d63 Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Thu, 26 Nov 2020 10:27:51 +0000 Subject: [PATCH 3/4] add arviz compat job --- .github/workflows/arviz_compat.yml | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/arviz_compat.yml diff --git a/.github/workflows/arviz_compat.yml b/.github/workflows/arviz_compat.yml new file mode 100644 index 0000000000..497b7d39df --- /dev/null +++ b/.github/workflows/arviz_compat.yml @@ -0,0 +1,45 @@ +name: arviz-compatibility + +on: + pull_request: + push: + branches: [master] + +jobs: + pytest: + strategy: + matrix: + python-version: ["3.8"] + os: [ubuntu-18.04] + floatx: [float64] + test-subset: + - pymc3/tests/test_sampling.py + runs-on: ${{ matrix.os }} + env: + TEST_SUBSET: ${{ matrix.test-subset }} + THEANO_FLAGS: floatX=${{ matrix.floatx }},gcc.cxxflags='-march=native' + defaults: + run: + shell: bash -l {0} + steps: + - uses: actions/checkout@v2 + - name: Cache conda + uses: actions/cache@v1 + env: + # Increase this value to reset cache if environment-dev.yml has not changed + CACHE_NUMBER: 0 + with: + path: ~/conda_pkgs_dir + key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ + hashFiles('environment-dev.yml') }} + - uses: conda-incubator/setup-miniconda@v2 + with: + activate-environment: testenv + channel-priority: strict + environment-file: environment-dev.yml + use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! + - run: | + conda activate testenv + conda remove arviz -y + pip install git+git://github.com/arviz-devs/arviz.git + python -m pytest -v --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET -n auto From 0ac4ee1c531baffdf1612826afc6f5bd5e4fb7ea Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Thu, 26 Nov 2020 10:45:22 +0000 Subject: [PATCH 4/4] update after_n_builds --- .codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codecov.yml b/.codecov.yml index 1e34e2a07f..0b888c6b4a 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,7 +1,7 @@ codecov: require_ci_to_pass: no notify: - after_n_builds: 7 + after_n_builds: 9 coverage: precision: 2