Skip to content

Commit

Permalink
Remake ASReview-visualization into asreview-insights extension (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: PeterLombaers <[email protected]>
  • Loading branch information
J535D165 and PeterLombaers authored May 25, 2022
1 parent 4f1c2b6 commit a9afc65
Show file tree
Hide file tree
Showing 54 changed files with 1,525 additions and 960 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,12 @@ jobs:
- name: Lint python with flake8
run: |
flake8 . --max-complexity=10 --statistics
test-master:
name: test-asreview-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: asr-plot

- uses: actions/checkout@v2
with:
repository: asreview/asreview
path: asr-core
- uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Install packages and run tests
run: |
pip install pytest
pip install --upgrade setuptools>=41.0.0
pip install ./asr-core[all]
pip install ./asr-plot
pytest asr-plot/tests
test-older:
name: test-asreview-0-7-2
test-asreview:
name: Test Insights for ASReview LAB versions
runs-on: ubuntu-latest
strategy:
matrix:
asr_versions: ['0.7.2']
asr_versions: ['1.0rc2']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
Expand All @@ -54,8 +31,6 @@ jobs:
- name: Install packages and run tests
run: |
pip install pytest
pip install --upgrade setuptools>=41.0.0
pip install "numpy<1.19"
pip install asreview[all]==${{ matrix.asr_versions }}
pip install .
pytest tests
8 changes: 4 additions & 4 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/asreview_visualization-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl
asset_name: asreview_visualization-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl
asset_path: ./dist/asreview_insights-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl
asset_name: asreview_insights-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl
asset_content_type: application/x-wheel+zip
- name: Upload Release Asset (Sdist)
id: upload-release-asset-sdist
Expand All @@ -53,8 +53,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/asreview-visualization-${{ steps.get_version.outputs.VERSION }}.tar.gz
asset_name: asreview-visualization-${{ steps.get_version.outputs.VERSION }}.tar.gz
asset_path: ./dist/asreview-insights-${{ steps.get_version.outputs.VERSION }}.tar.gz
asset_name: asreview-insights-${{ steps.get_version.outputs.VERSION }}.tar.gz
asset_content_type: application/zip
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
Expand Down
Loading

0 comments on commit a9afc65

Please sign in to comment.