-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (62 loc) · 1.79 KB
/
misc-tests.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: misc-tests
on: [pull_request, push]
permissions:
contents: read # to fetch code (actions/checkout)
defaults:
run:
shell: bash -l {0}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-sdist:
name: Test sdist
runs-on: ubuntu-latest
env:
COMMIT_ID: ${{ github.sha }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_IAM_S3_UPLOADER }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_IAM_S3_UPLOADER }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: mamba-org/provision-with-micromamba@v14
with:
cache-downloads: true
cache-env: true
environment-name: dev
environment-file: ops/conda_env/dev.yml
- name: Display Conda env
run: |
conda info
conda list
- name: Test sdist
run: |
bash ops/test-sdist.sh
java-test:
if: false # TODO(hcho3): Re-enable when Java runtime is brought up to date
name: Run Java tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: mamba-org/provision-with-micromamba@v14
with:
cache-downloads: true
cache-env: true
environment-name: dev
environment-file: ops/conda_env/dev.yml
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: tl2cgen4j-${{ runner.os }}-m2-${{ hashFiles('./runtime/java/tl2cgen4j/pom.xml') }}
restore-keys: tl2cgen4j-${{ runner.os }}-m2
- name: Run tests with test coverage computation
shell: bash -l {0}
run: |
bash ops/test-java.sh