Create Cosmic_AI_light_test.py #9
This file contains hidden or 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: Test Python Experiments | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Run basic tests | |
| run: | | |
| cd experiments/python | |
| python cosmic_computation.py | |
| - name: Run consensus test | |
| run: | | |
| cd experiments/python | |
| timeout 60 python test_consensus.py || echo "Test completed" | |
| - name: Run cache test | |
| run: | | |
| cd experiments/python | |
| timeout 60 python test_cache.py || echo "Test completed" | |
| - name: Run hyperparameter test | |
| run: | | |
| cd experiments/python | |
| timeout 60 python test_hyperparameter.py || echo "Test completed" |