-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (50 loc) · 1.43 KB
/
pants.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Pants
on: [pull_request]
jobs:
org-check:
name: Check GitHub Organization
if: ${{ github.repository_owner == '5G-ERA' }}
runs-on: ubuntu-20.04
steps:
- name: Noop
run: "true"
build:
env:
PANTS_CONFIG_FILES: pants.ci.toml
name: Perform CI Checks
needs: org-check
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.8']
steps:
- uses: actions/checkout@v3
- uses: pantsbuild/actions/init-pants@v5-scie-pants
with:
gha-cache-key: cache0-py${{ matrix.python-version }}
named-caches-hash: ${{ hashFiles('python-default.lock') }}
- 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: Build and install packages
run: |
# We also smoke test that our release process will work by running `package`.
pants package ::
# this helps to check for cyclic dependencies or other problems
python -m venv ./tstvenv
source ./tstvenv/bin/activate
pip install dist/*.tar.gz
pip install pipdeptree
pipdeptree -w fail
- name: Upload pants log
uses: actions/upload-artifact@v3
with:
name: pants-log
path: .pants.d/pants.log
if: always() # We want the log even on failures.