Skip to content
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

Run poetry update and reinstall everything with pip #20

Merged
merged 7 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
30 changes: 15 additions & 15 deletions .github/workflows/download_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ jobs:
automated
draft: false

on-failure:
runs-on: ubuntu-latest
if: ${{ always() && (needs.download_data.result == 'failure' || needs.download_data.result == 'timed_out') }}
needs:
- download_data
steps:
- uses: actions/checkout@v4
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_USERNAME: GH Actions Bot
SLACK_TITLE: Workflow ${{ needs.download_data.result }}
MSG_MINIMAL: actions url
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_COLOR: ${{ needs.download_data.result }}
# on-failure:
# runs-on: ubuntu-latest
# if: ${{ always() && (needs.download_data.result == 'failure' || needs.download_data.result == 'timed_out') }}
# needs:
# - download_data
# steps:
# - uses: actions/checkout@v4
# - name: Slack Notification
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_USERNAME: GH Actions Bot
# SLACK_TITLE: Workflow ${{ needs.download_data.result }}
# MSG_MINIMAL: actions url
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
# SLACK_COLOR: ${{ needs.download_data.result }}
40 changes: 39 additions & 1 deletion bin/download_scopesim_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,32 @@ pip install poetry

# Download and install all the packages. Has to be done from git, because the
# releases do not (always) have the test files.
# TODO: Add speXtra and Pickles?
# All poetry files are updated with `poetry lock` to ensure we test the latest
# versions of our dependencies.

# Pyckles must go first, because otherwise it uninstalls scipy (????). See
# https://stackoverflow.com/questions/67085976/how-to-stop-poetry-from-uninstalling-packages
git clone https://github.com/AstarVienna/Pyckles.git
pushd Pyckles
poetry lock
poetry install --with=test,docs
popd

git clone https://github.com/AstarVienna/speXtra.git
pushd speXtra
poetry lock
poetry install --with=test,docs
popd

git clone https://github.com/AstarVienna/ScopeSim.git
pushd ScopeSim
poetry lock
poetry install --with=test,dev,docs
popd

git clone https://github.com/AstarVienna/skycalc_ipy.git
pushd skycalc_ipy
poetry lock
poetry install --with=test,docs
popd

Expand All @@ -78,6 +95,7 @@ popd

git clone https://github.com/AstarVienna/ScopeSim_Templates.git
pushd ScopeSim_Templates
poetry lock
poetry install --with=test,dev,docs
popd

Expand All @@ -87,9 +105,29 @@ pushd irdb
pip install -e ".[test]"
popd

# poetry lock will upgrade only to the latest versions that are released,
# thereby downgrading each other.
# But ScopeSim_Data should use the latest version of all our projects
# (to download the data they need, and to test whether they work together).
# So the projects need to be installed again.
pip install -e Pyckles
pip install -e speXtra
pip install -e ScopeSim
pip install -e ScopeSim_Templates
pip install -e skycalc_ipy
pip install -e AnisoCADO
pip install -e irdb


# Run the tests.
pushd Pyckles
python -m pytest
popd

pushd speXtra
python -m pytest
popd

pushd skycalc_ipy
python -m pytest
popd
Expand Down
Loading