Merge pull request #404 from apel/release-4.0.0 #214
Workflow file for this run
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: Run Unit Tests | |
| on: [push, pull_request] | |
| jobs: | |
| unit-test: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Python versions on EL 9, Ubuntu 22.04, EL 10/Ubuntu 24.04 | |
| python-version: ['3.9', '3.10', '3.12'] | |
| name: Python ${{ matrix.python-version }} test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Base requirements for SSM | |
| run: pip install -r requirements.txt | |
| - name: Additional requirements for the unit and coverage tests | |
| run: pip install -r requirements-test.txt | |
| - name: Pre-test set up | |
| run: | | |
| export TMPDIR=$PWD/tmp | |
| mkdir $TMPDIR | |
| export PYTHONPATH=$PYTHONPATH:`pwd -P` | |
| cd test | |
| - name: Run unit tests | |
| run: coverage run --branch --source=ssm,bin -m unittest discover --buffer | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 |