Skip to content

refactor logic

refactor logic #69

Workflow file for this run

---
name: Validate Pull Request
on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up pants
uses: pantsbuild/actions/init-pants@v5-scie-pants
with:
gha-cache-key: v0
named-caches-hash: ${{ hashFiles('3rdparty/python/default.lock') }}
- name: Check BUILD files
run: |
pants tailor --check update-build-files --check ::
- name: Lint and typecheck
run: |
pants lint check ::
- name: Upload pants log
uses: actions/upload-artifact@v3
with:
name: pants-log-lint
path: .pants.d/pants.log
if: always() # We want the log even on failures.
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up pants
uses: pantsbuild/actions/init-pants@v5-scie-pants
with:
named-caches-hash: ${{ hashFiles('python-default.lock') }}
- name: Test
run: |
pants test ::
- name: Upload pants log
uses: actions/upload-artifact@v3
with:
name: pants-log-test
path: .pants.d/pants.log
if: always() # We want the log even on failures.