add time_limit
parameter to map()
and use for map_and_time
#211
#708
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
workflow_dispatch: | |
workflow_call: | |
push: | |
paths: | |
- 'pytest.ini' | |
- 'src/**' | |
- 'tests/**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '>=3.10' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest numpy scipy | |
- name: Run Tests | |
run: pytest | |
timeout-minutes: 1 |