-
Notifications
You must be signed in to change notification settings - Fork 122
56 lines (51 loc) · 1.44 KB
/
test-meltingpot.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
# Continuous integration tests.
name: test-meltingpot
on:
push:
branches:
- main
paths:
- '.github/workflows/test-meltingpot.yml'
- 'meltingpot/**'
- 'setup.py'
pull_request:
branches:
- main
paths:
- '.github/workflows/test-meltingpot.yml'
- 'meltingpot/**'
- 'setup.py'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
# Declare default permissions as read only.
permissions: read-all
jobs:
test-meltingpot:
name: Test Melting Pot
runs-on: ${{ matrix.os }}
env:
SYSTEM_VERSION_COMPAT: 0 # See https://github.com/actions/setup-python/issues/279.
timeout-minutes: 90
strategy:
fail-fast: ${{ github.event_name != 'workflow_dispatch' }}
matrix:
os:
- macos-11
- ubuntu-20.04
python-version:
- '3.10'
steps:
- name: Set up Python
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install setuptools pytest-xdist
- name: Install Melting Pot
run: pip -vvv install https://github.com/deepmind/meltingpot/archive/${{ github.sha }}.tar.gz
- name: Test Melting Pot
run: pytest --pyargs meltingpot