-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.52 KB
/
check-mocks-synced-with-yea-wandb.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
name: check if mocks are synced with yea-wandb
on:
push:
branches:
- master
pull_request:
jobs:
check-mocks-synced:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v2
- name: Check if mock_requests is up to date with wandb/client:master
id: mock_requests
run: |
wget https://raw.githubusercontent.com/wandb/yea-wandb/main/src/yea_wandb/mock_requests.py
diff mock_requests.py tests/utils/mock_requests.py
continue-on-error: true
- name: Check if mock_server is up to date with wandb/client:master
id: mock_server
run: |
wget https://raw.githubusercontent.com/wandb/yea-wandb/main/src/yea_wandb/mock_server.py
diff mock_server.py tests/utils/mock_server.py
continue-on-error: true
- name: Check if artifact_emu is up to date with wandb/client:master
id: artifact_emu
run: |
wget https://raw.githubusercontent.com/wandb/yea-wandb/main/src/yea_wandb/artifact_emu.py
diff artifact_emu.py tests/utils/artifact_emu.py
continue-on-error: true
- name: Check on failures
if: |
steps.mock_requests.outcome != 'success'
|| steps.mock_server.outcome != 'success'
|| steps.artifact_emu.outcome != 'success'
run: |
echo "Mocks are not up to date with yea-wandb."
echo "See https://github.com/wandb/client/blob/master/CONTRIBUTING.md#functional-testing for details."
exit 1