Merge branch 'feature/dep-group-image-ipy' into feature/buff-worms #71
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: mfr_ci_testing | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
env: | |
GHA_DISTRO: ubuntu-24.04 | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
strategy: | |
matrix: | |
python-version: [3.13] | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache Build Requirements | |
id: pip-cache-step | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ env.GHA_DISTRO }}-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'dev-requirements.txt') }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip==24.0 | |
pip install setuptools==80.1.0 | |
pip install -r dev-requirements.txt | |
runtests: | |
name: Run unit tests | |
needs: build | |
runs-on: ubuntu-24.04 | |
env: | |
GHA_DISTRO: ubuntu-24.04 | |
strategy: | |
matrix: | |
python-version: [3.13] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache pip | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ env.GHA_DISTRO }}-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'dev-requirements.txt') }} | |
- name: Install test dependencies | |
run: | | |
python -m pip install --upgrade pip==24.0 | |
pip install setuptools==80.1.0 | |
pip install -r dev-requirements.txt | |
- name: Run flake8 | |
run: flake8 . | |
- name: Build plugins | |
run: python setup.py develop | |
- name: Run unit tests | |
run: | | |
pytest --cov-report term-missing --cov modular-file-renderer tests | |
- name: Upload coverage to Coveralls | |
run: coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |