Skip to content

Commit

Permalink
Run test actions when they change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 549241838
Change-Id: I84bc3a2dfea7fc50372558ad29b696fad7bca3e7
  • Loading branch information
jagapiou authored and Copybara-Service committed Jul 19, 2023
1 parent f814b2b commit c28b09f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/pypi-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ name: pypi-test
on:
schedule:
- cron: "0 2 * * 1" # Every Monday at 2am.
push:
branches:
- main
paths:
- '.github/workflows/pypi-status.yml'
pull_request:
branches:
- main
paths:
- '.github/workflows/pypi-status.yml'
workflow_dispatch:

permissions: read-all
Expand Down Expand Up @@ -40,4 +50,4 @@ jobs:
run: pip -vvv install dm-meltingpot

- name: Test installation
run: pytest -n auto -rax --pyargs meltingpot
run: pytest --pyargs meltingpot
6 changes: 4 additions & 2 deletions .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ on:
branches:
- main
paths:
- 'pyproject.toml'
- '.github/workflows/test-examples.yml'
- 'examples/**'
- 'meltingpot/**'
- 'setup.py'
pull_request:
branches:
- main
paths:
- 'pyproject.toml'
- '.github/workflows/test-examples.yml'
- 'examples/**'
- 'meltingpot/**'
- 'setup.py'
workflow_dispatch:

concurrency:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test-meltingpot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ on:
branches:
- main
paths:
- 'pyproject.toml'
- '.github/workflows/test-meltingpot.yml'
- 'meltingpot/**'
- 'setup.py'
pull_request:
branches:
- main
paths:
- 'pyproject.toml'
- '.github/workflows/test-meltingpot.yml'
- 'meltingpot/**'
- 'setup.py'
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -49,6 +51,6 @@ jobs:
pip install --upgrade pip
pip install setuptools pytest-xdist
- name: Install Melting Pot
run: pip install https://github.com/deepmind/meltingpot/archive/${{ github.sha }}.tar.gz
run: pip -vvv install https://github.com/deepmind/meltingpot/archive/${{ github.sha }}.tar.gz
- name: Test Melting Pot
run: pytest -n auto --pyargs meltingpot
run: pytest --pyargs meltingpot

0 comments on commit c28b09f

Please sign in to comment.