Skip to content

Commit

Permalink
Working to fix tests on CI (#187)
Browse files Browse the repository at this point in the history
* simplifying ci workflow

* updating baseline images
  • Loading branch information
dfm committed Nov 23, 2021
1 parent c5c6252 commit ad2db61
Show file tree
Hide file tree
Showing 32 changed files with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,7 @@ jobs:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.9"]
arviz-version:
- ""
- "arviz~=0.9"
- "arviz~=0.10"
- "arviz~=0.11"
- "https://github.com/arviz-devs/arviz/archive/main.zip"
include:
- python-version: "3.6"
arviz-version: "arviz"
- python-version: "3.7"
arviz-version: "arviz"
- python-version: "3.8"
arviz-version: "arviz"
python-version: ["3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v2
Expand All @@ -39,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install $ARVIZ ".[test]"
python -m pip install ".[test,arviz]"
env:
ARVIZ: ${{ matrix.arviz-version }}

Expand All @@ -49,10 +36,11 @@ jobs:
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: images-${{ matrix.python-version }}
path: ./result_images

build:
name: Build source distribution
name: Build dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -70,20 +58,14 @@ jobs:
python -m pip install -U build
python -m build .
- name: Test the sdist
- name: Check the artifacts
run: |
python -m venv venv-sdist
venv-sdist/bin/python -m pip install dist/corner*.tar.gz
venv-sdist/bin/python -c "import corner;print(corner.__version__)"
- name: Test the wheel
run: |
python -m venv venv-wheel
venv-wheel/bin/python -m pip install dist/corner*.whl
venv-wheel/bin/python -c "import corner;print(corner.__version__)"
python -m pip install -U twine
python -m twine check dist/*
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*

upload_pypi:
Expand All @@ -93,10 +75,10 @@ jobs:
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
name: dist
path: dist

- uses: pypa/gh-action-pypi-publish@master
- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.pypi_password }}
Expand Down
Binary file modified tests/baseline_images/test_corner/arviz.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/basic.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/color_filled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/extended_overplotting.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/hist_bin_factor.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/labels.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/no_fill_contours.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/overplot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/pandas.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/quantiles.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/reverse.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/reverse_overplotting.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/reverse_truths.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/smooth1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/smooth1d.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/smooth2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/tight.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/titles1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/titles2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/top_ticks.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_corner/truths.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_hist2d/basic.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_hist2d/color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_hist2d/filled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/baseline_images/test_hist2d/levels1.png
Binary file modified tests/baseline_images/test_hist2d/levels2.png
Binary file modified tests/baseline_images/test_hist2d/lowNfilled.png
Binary file modified tests/baseline_images/test_hist2d/philsplot.png
Binary file modified tests/baseline_images/test_hist2d/smooth1.png
Binary file modified tests/baseline_images/test_hist2d/smooth2.png

0 comments on commit ad2db61

Please sign in to comment.