Skip to content

running pants with single python version #556

running pants with single python version

running pants with single python version #556

Workflow file for this run

name: Build
on: [push, pull_request]
permissions:
actions: write
checks: write
contents: read
deployments: read
issues: write
discussions: write
packages: read
pages: write
pull-requests: write
security-events: write
statuses: write
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
pants_python_version: [3.11]
os: ["ubuntu-latest"]
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Initialize Pants
uses: pantsbuild/actions/init-pants@main
with:
gha-cache-key: cache0-py${{ matrix.pants_python_version }}
named-caches-hash: ${{ hashFiles('requirements.txt') }}
- name: Check BUILD files
run: |
pants tailor --check update-build-files --check ::
- name: Format
run: |
pants fmt ::
- name: Run tests
run: |
pants test --use-coverage ::
- name: Run codecov
uses: codecov/codecov-action@v3