Skip to content

is mem limit enough #25

is mem limit enough

is mem limit enough #25

Workflow file for this run

# Copyright 2020 Pants project contributors.
# Licensed under the Apache License, Version 2.0 (see LICENSE).
# See https://www.pantsbuild.org/stable/docs/using-pants/using-pants-in-ci for tips on how to set up your CI with Pants.
name: Pants
on: [push, workflow_dispatch]
jobs:
build:
name: Perform CI Checks
strategy:
matrix:
runner:
# Replace with your profile label https://namespace.so/docs/features/faster-github-actions#using-runner-profiles
- namespace-profile-amd64-with-caching
- namespace-profile-arm64-with-caching
# - ubuntu-22.04
# - ubuntu-22.04-arm
python-version: [3.9]
fail-fast: false
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Set up remote cache
run: |
nsc pants cache setup --pants-toml=/tmp/pants.toml
- name: Set up local cache
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
~/.cache/pants/named_caches
~/.cache/pants/lmdb_store
~/.cache/nce
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# - uses: pantsbuild/actions/init-pants@v8
# with:
# gha-cache-key: v0
# named-caches-hash: ${{ hashFiles('python-default.lock') }}
# pants-ci-config: "['pants.toml', '/tmp/pants.toml']"
- name: Manual install
env:
# PANTS_LOCAL_STORE_SHARD_COUNT: 1
PANTS_LOCAL_STORE_PROCESSES_MAX_SIZE_BYTES: 536870912
run: |
curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash
which -a pants
pants --print-stacktrace -ldebug --version
- name: Check BUILD files
run: |
pants tailor --check update-build-files --check ::
- name: Lint and typecheck
run: |
pants lint check ::
- name: Test
run: |
pants test ::
- name: Package / Run
run: |
# We also smoke test that our release process will work by running `package`.
pants package ::
pants run helloworld/:pex_binary
- name: Breakpoint
uses: namespacelabs/breakpoint-action@v0
if: failure()
with:
duration: 15m
authorized-users: edganiukov,hugosantos,n-g,htr,nichtverstehen,gmichelo