From 9e7743f191f06beccedd7ce89bbe4c501018146a Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 7 Nov 2024 11:41:55 -0500 Subject: [PATCH] ci: add CI run to test currently failing installation scenario ref: https://github.com/datalad/datalad-installer/issues/206 https://github.com/datalad/datalad-installer/pull/209 seems could provide a workaround but I think we should test/workaround within datalad-installer without requiring adjustment of each similar invocation --- .github/workflows/test-scenarios.yml | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/test-scenarios.yml diff --git a/.github/workflows/test-scenarios.yml b/.github/workflows/test-scenarios.yml new file mode 100644 index 0000000..84854a2 --- /dev/null +++ b/.github/workflows/test-scenarios.yml @@ -0,0 +1,43 @@ +name: Test-scenarios + +on: + pull_request: + push: + branches: + - master + schedule: + - cron: '0 6 * * *' + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }} + cancel-in-progress: true + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - python-version: '3.12' + os: ubuntu-latest + scenario: miniconda --channel conda-forge --python-match minor--batch git-annex -m conda + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Run scenario + run: ./src/datalad_installer.py ${{ matrix.scenario }} + env: + GITHUB_TOKEN: ${{ secrets.GH_DOWNLOAD_TOKEN }} + +# vim:set et sts=2: