test deployment of reports in another repository
@@ -57,19 +57,31 @@ jobs:
id: unittest
run: |
FAST_TEST=True USE_GPU=False python -m unittest
+ - name: clone reports repository
+ #if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ if: always() && github.event_name == 'push'
+ uses: actions/checkout@v2
+ with:
+ repository: 'ContinualAI/avalanche-report'
+ path: 'avalanche-reports'
+ token: ${{ secrets.GITHUB_TOKEN }}
- name: test success
- if: success() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ #if: success() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ if: success() && github.event_name == 'push'
run: |
- rm -f .github/packages-info/fail-${{ matrix.python-version }}-*
- rm -f .github/packages-info/success-${{ matrix.python-version }}-*
- conda list > $".github/packages-info/success-"${{ matrix.python-version }}"-"$GITHUB_SHA".txt"
+ rm -f avalanche-reports/packages/fail-${{ matrix.python-version }}-*
+ rm -f avalanche-reports/packages/success-${{ matrix.python-version }}-*
+ conda list > $"avalanche-reports/packages/success-"${{ matrix.python-version }}"-"$GITHUB_SHA".txt"
- name: test failure
- if: failure() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ # if: failure() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ if: failure() && github.event_name == 'push'
run: |
- conda list > $".github/packages-info/fail-"${{ matrix.python-version }}"-"$GITHUB_SHA".txt"
+ conda list > $"avalanche-reports/packages/fail-"${{ matrix.python-version }}"-"$GITHUB_SHA".txt"
- name: commit changes
- if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ # if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ if: always() && github.event_name == 'push'
run: |
+ cd avalanche-reports
git config --local user.email ${{ secrets.EMAIL }}
git config --local user.name ${{ secrets.NAME }}
git pull
@@ -77,9 +89,12 @@ jobs:
git commit -m "Update packages files" -a || true
git pull
- name: Push changes
- if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ # if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
+ if: always() && github.event_name == 'push'
continue-on-error: true
uses: ad-m/github-push-action@master
with:
+ repository: ContinualAI/avalanche-report
+ branch: main
+ directory: avalanche-reports
github_token: ${{ secrets.GITHUB_TOKEN }}
- branch: ${{ github.ref }}
