Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
github-actions bot opened this issue Oct 25, 2022 · 0 comments
Open

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

github-actions bot opened this issue Oct 25, 2022 · 0 comments
Labels

Comments

@github-actions
Copy link

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"
@github-actions github-actions bot added the todo label Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants