Skip to content

Merge pull request #142 from deepmind:dependabot/github_actions/ossf/… #6

Merge pull request #142 from deepmind:dependabot/github_actions/ossf/…

Merge pull request #142 from deepmind:dependabot/github_actions/ossf/… #6

# 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
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: 120
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@61a6322f88396a6271a6ee3565807d608ecaddd1
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
pip list
- name: Test Melting Pot
run: pytest --pyargs meltingpot