Skip to content

Write some additional tests for get_pants.sh #183

Write some additional tests for get_pants.sh

Write some additional tests for get_pants.sh #183

Workflow file for this run

name: CI
on: [push, pull_request]
concurrency:
group: CI-${{ github.ref }}
cancel-in-progress: true
env:
PYTHON_VERSION: 3.9
jobs:
org-check:
name: Check GitHub Organization
if: ${{ github.repository_owner == 'pantsbuild' }}
runs-on: ubuntu-20.04
steps:
- name: Noop
run: "true"
tests:
# It's only necessary to typecheck and lint on one platform, but those goals are so fast
# in this repo that a separate job for them would be almost entirely wasteful overhead,
# and logic to only run them in one of these matrixed jobs would be more complicated
# than it's worth.
name: (${{ matrix.os }}) Test, Typecheck and Lint
needs: org-check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Ensure default install path is on PATH
# Do this here so that we can change the path before updating the init-pants action.
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Setup Pants
uses: pantsbuild/actions/init-pants@v4-scie-pants
with:
gha-cache-key: v2
named-caches-hash: ${{ hashFiles('tests/requirements.lock') }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Expose Pythons
uses: pantsbuild/actions/expose-pythons@v2
- name: Run Tests
run: |
pants test check lint ::