Remove unused imports in setup.py #307
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
pull_request: | |
branches: [master] | |
jobs: | |
tests: | |
name: "Test ${{ matrix.pymc-version }} on py${{ matrix.python-version }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- python-version: "3.7" | |
pymc-version: "pymc3==3.9.3" | |
arviz-version: "arviz==0.11.1" | |
- python-version: "3.8" | |
pymc-version: "pymc3==3.9.3" | |
arviz-version: "arviz==0.11.1" | |
- python-version: "3.8" | |
pymc-version: "pymc3==3.10" | |
arviz-version: "arviz==0.11.1" | |
- python-version: "3.8" | |
pymc-version: "pymc3==3.11" | |
arviz-version: "" | |
- python-version: "3.9" | |
pymc-version: "pymc3==3.11" | |
arviz-version: "" | |
# TODO: | |
# - python-version: "3.8" | |
# pymc-version: "https://github.com/pymc-devs/pymc3/archive/main.zip" | |
# arviz-version: "" | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.theano | |
key: ${{ runner.os }}-${{ matrix.pymc-version }}-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.pymc-version }}- | |
- name: Set up Python | |
id: setup_python | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
activate-environment: starry | |
environment-file: environment.yml | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
id: install | |
if: steps.setup_python.outcome == 'success' | |
shell: bash -l {0} | |
run: | | |
python -m pip install -U pip | |
python -m pip install ${{ matrix.pymc-version }} ${{ matrix.arviz-version }} | |
STARRY_UNIT_TESTS=1 python -m pip install -e ".[tests]" | |
- name: Run tests | |
if: steps.install.outcome == 'success' | |
shell: bash -l {0} | |
run: python -m pytest -v --junitxml=junit/test-results.xml --cov=starry | |
- name: Get unique id | |
id: unique-id | |
if: always() | |
env: | |
STRATEGY_CONTEXT: ${{ toJson(strategy) }} | |
run: | | |
export JOB_ID=`echo $STRATEGY_CONTEXT | md5sum` | |
echo "::set-output name=id::$JOB_ID" | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
if: always() | |
with: | |
files: junit/test-*.xml | |
comment_mode: off | |
- name: Coveralls | |
uses: AndreMiras/coveralls-python-action@develop | |
if: always() | |
with: | |
parallel: true | |
flag-name: Unit Test | |
coveralls_finish: | |
needs: tests | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- name: Coveralls Finished | |
uses: AndreMiras/coveralls-python-action@develop | |
with: | |
parallel-finished: true |