Skip to content

short circuit job as soon as it's possible: #164

@github-actions

Description

@github-actions

actions/runner#662

if: ${{ github.repository == 'psykei/psyke-python' }}

# TODO: short circuit job as soon as it's possible:

  create-test-predictors-if-needed:
    runs-on: ubuntu-latest
    name: Create test predictors if needed
    # TODO: short circuit job as soon as it's possible:
    # https://github.com/actions/runner/issues/662
    # if: ${{ github.repository == 'psykei/psyke-python' }}
    steps:
      - name: Checkout code
        if: ${{ github.repository == 'psykei/psyke-python' }}
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
          submodules: recursive

      - name: Get Python Version
        if: ${{ github.repository == 'psykei/psyke-python' }}
        id: get-python-version
        run: echo ::set-output name=version::$(cat .python-version)

      - name: Setup Python
        if: ${{ github.repository == 'psykei/psyke-python' }}
        uses: actions/setup-python@v4
        with:
          python-version: ${{ steps.get-python-version.outputs.version }}

      - name: Restore Python dependencies
        if: ${{ github.repository == 'psykei/psyke-python' }}
        run: pip install -r requirements.txt

      - name: Create missing predictors
        if: ${{ github.repository == 'psykei/psyke-python' }}
        run: python setup.py create_test_predictors

      - name: Submodule update
        if: ${{ github.repository == 'psykei/psyke-python' }}
        run: |
          pushd test/resources
          git config user.email "bot@noreply.github.com"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions