Skip to content

Commit

Permalink
Add hooks for diffstarpop installation using repo secrets. Tests will…
Browse files Browse the repository at this point in the history
… still fail until the repo secrets are set up for diffsky
  • Loading branch information
aphearin committed Feb 13, 2025
1 parent cd03879 commit 67e8731
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/monthly-warning-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ jobs:
show-channel-urls: true
miniforge-version: latest


- name: configure conda and install code
# Test against current main branch of all diff+ dependencies
shell: bash -l {0}
env:
GITHUB_TOKEN: ${{ secrets.CPAC_PRIVATE_REPO_TOKEN }}
GITHUB_USER: ${{ secrets.GH_USR_TESTING_TOKEN }}

# Test against current main branch of all diff+ dependencies
run: |
conda config --set always_yes yes
conda install --quiet \
Expand All @@ -47,6 +53,7 @@ jobs:
pip install --no-deps git+https://github.com/ArgonneCPAC/diffmah.git
pip install --no-deps git+https://github.com/ArgonneCPAC/diffstar.git
pip install --no-deps git+https://github.com/ArgonneCPAC/dsps.git
pip install --no-deps git+https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/ArgonneCPAC/diffstarpop.git
python -m pip install --no-build-isolation --no-deps -e .
- name: test that no warnings are raised
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/test_latest_releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ jobs:
miniforge-version: latest

- name: configure conda and install code
# Test against conda-forge for all dependencies except use main branch for dsps
# Test against current main branch of all diff+ dependencies
shell: bash -l {0}
env:
GITHUB_TOKEN: ${{ secrets.CPAC_PRIVATE_REPO_TOKEN }}
GITHUB_USER: ${{ secrets.GH_USR_TESTING_TOKEN }}

# Test against conda-forge for all dependencies except use main branch for dsps
run: |
conda config --set always_yes yes
conda install --quiet \
Expand All @@ -43,6 +48,7 @@ jobs:
python-build
pip uninstall dsps --yes
pip install --no-deps git+https://github.com/ArgonneCPAC/dsps.git
pip install --no-deps git+https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/ArgonneCPAC/diffstarpop.git
python -m pip install --no-build-isolation --no-deps -e .
- name: test
Expand All @@ -52,6 +58,8 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: test versions
shell: bash -el {0}
Expand Down

0 comments on commit 67e8731

Please sign in to comment.