Repository navigation
fix: Add missing test_api_calculations.py and CI/CD workflows #1
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: Python CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.9 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.9" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install numpy pandas matplotlib scipy | |
| - name: Run script to check for errors | |
| run: python Data_Package_FAIR2/Python_Code_API_Monte_Carlo.py --all --no_plot | |
| - name: Run unit tests | |
| run: python -m unittest Data_Package_FAIR2/test_api_calculations.py |