-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.12 KB
/
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
name: Tests
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install JavaScript dependencies
run: yarn install --frozen-lockfile
- name: Build JavaScript
run: yarn build
- name: Run JavaScript tests
run: yarn test:js
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11.5
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.3
- id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: "${{ secrets.ARTIFACT_REGISTRY_KEY }}"
- name: Configure Poetry
run: |
poetry self add keyrings.google-artifactregistry-auth
poetry config repositories.gcp https://us-west1-python.pkg.dev/probcomp-caliban/probcomp/
- name: Install Python dependencies
run: poetry install
- name: Run Python tests
run: yarn test:py