diff --git a/.github/workflows/CI_pytest_weekly.yml b/.github/workflows/CI_pytest_weekly.yml index ed1ef5a..421d69d 100644 --- a/.github/workflows/CI_pytest_weekly.yml +++ b/.github/workflows/CI_pytest_weekly.yml @@ -23,15 +23,23 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: - # Checkout the master branch from the repository + # Checkout the master branch if this is a scheduled test # The idea for this Action is to spot issues with new dependency versions as soon as they # are released (and not when we decide to update ampycloud). - - name: Checkout current repository + - name: Checkout current repository (master branch) + if: ${{ github.event_name == 'schedule' }} uses: actions/checkout@v4 with: repository: MeteoSwiss/ampycloud ref: master + # Alternatively, checkout whichever branch was selected by the user upon the manual trigger. + - name: Checkout current repository (custom branch) + if: ${{ github.event_name == 'workflow_dispatch' }} + uses: actions/checkout@v4 + with: + repository: MeteoSwiss/ampycloud + # Setup python - name: Set up Python uses: actions/setup-python@v5