add long_description_content_type #38
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
| # This workflow runs the repo's CI tests. | |
| name: tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| name: Python ${{ matrix.python-version }} ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] | |
| defaults: | |
| run: | |
| shell: bash -elo pipefail {0} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Create environment with Micromamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| cache-environment: true | |
| create-args: python=${{ matrix.python-version }} | |
| environment-file: tests/environment-dev.yml | |
| - name: Install pynamical | |
| run: | | |
| python -m pip install . | |
| python -m pip check | |
| micromamba list | |
| python -m pip show pynamical | |
| - name: Lint code | |
| run: | | |
| isort . --check-only | |
| black . --line-length 100 --check --diff | |
| flake8 . | |
| pydocstyle . | |
| - name: Test docs | |
| run: make -C ./docs html | |
| - name: Test code | |
| run: | | |
| coverage run --source ./pynamical --module pytest --verbose | |
| coverage xml -i | |
| coverage report -m | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v1 |