-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (42 loc) · 1.14 KB
/
plugin.yaml
File metadata and controls
42 lines (42 loc) · 1.14 KB
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: Python proto rules
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set profile
run: export PLZ_CONFIG_PROFILE=ci && echo $PATH
- name: Run tests
run: ./pleasew test --log_file plz-out/log/test.log
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.python-version }}
path: plz-out/log
release:
needs: [test]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: thought-machine/release-action@v0.3.0