-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1.08 KB
/
ci.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
name: CI - Lint Test Package
on:
push:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT }}
- name: pants_init
uses: "./.github/templates/pants_init"
with:
gh_pat: secrets.GH_PAT
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Check BUILD files
run: "pants tailor --check update-build-files --check ::"
- name: Lint
run: |
pants lint ::
if: success() || failure()
- name: Test
if: success() || failure()
run: |
export PANTS_TEST_USE_COVERAGE=true
pants test ::
- name: Package
if: success() || failure()
run: "pants --tag='-arm' package ::"
- name: Upload coverage
uses: codecov/codecov-action@v3
if: success() || failure()
with:
files: ./dist/coverage/python/coverage.xml