Implement Sound Shell Model and double broken power law #17
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: CI | |
| on: push | |
| env: | |
| PRIMARY_PYTHON_VERSION: '3.13' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| DJANGO_SETTINGS_MODULE: ptplot_site.settings.dev | |
| steps: | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.PRIMARY_PYTHON_VERSION }} | |
| - name: Print Python version | |
| run: python -V | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Load pip cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .pip | |
| key: pip-${{ runner.os }}-${{ hashFiles('requirements.txt') }} | |
| restore-keys: | | |
| pip-${{ runner.os }}- | |
| pip- | |
| - name: Install requirements | |
| run: | | |
| pip --cache-dir=.pip install --upgrade pip wheel | |
| pip --cache-dir=.pip install -r requirements.txt -r requirements-dev.txt | |
| - name: Print Numba sysinfo | |
| run: numba --sysinfo | tee numba-sysinfo.txt | |
| - name: Create migrations | |
| run: python manage.py makemigrations | |
| - name: Migrate database | |
| run: python manage.py migrate | |
| - name: Check configuration | |
| run: python manage.py check --fail-level WARNING | |
| - name: Generate PTtools reference data | |
| run: python3 -c "from pttools.bubble.fluid_reference import ref; ref()" | |
| - name: Run tests with coverage | |
| run: coverage run | |
| - name: Create coverage reports | |
| run: | | |
| coverage combine | |
| coverage report | tee coverage.txt | |
| coverage html | |
| coverage xml | |
| coverage json | |
| - name: Upload results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Coverage | |
| path: | | |
| ${{ github.workspace }}/coverage.txt | |
| ${{ github.workspace }}/coverage.xml | |
| ${{ github.workspace }}/coverage.json | |
| ${{ github.workspace }}/htmlcov | |
| if-no-files-found: error | |
| # - name: Upload results to Codecov | |
| # uses: codecov/codecov-action@v5 | |
| # with: | |
| # token: ${{ secrets.CODECOV_TOKEN }} |