Find imported modules from sys.modules instead of tracking. #45
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
| # SPDX-FileCopyrightText: Blair Bonnett | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| name: Continuous integration tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| run-ci-tests: | |
| runs-on: ubuntu-latest | |
| name: "Matplotlib ${{ matrix.matplotlib-version}} on Python ${{ matrix.python-version }}" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.12, 3.13] | |
| matplotlib-version: [ "3.8.4", "3.10.6" ] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| architecture: x64 | |
| - name: Install system libraries | |
| run: | | |
| sudo apt-get update | |
| xargs -a .github/workflows/requirements-test-apt.txt sudo apt-get install -y | |
| - name: Install test environment | |
| run: | | |
| pip install -r .github/workflows/requirements-test-pip.txt "matplotlib==${{ matrix.matplotlib-version }}" | |
| - name: Run unit tests | |
| run: pytest --cov-report=xml | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage.xml | |
| flags: "Matplotlib-${{ matrix.matplotlib-version}}-Python-${{ matrix.python-version }}" | |
| token: ${{ secrets.CODECOV_TOKEN }} |