Skip to content

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #54

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #54

Workflow file for this run

# GitHub Actions workflow for test suite
# vim: set ts=8 sts=2 sw=2:
name: Test
on:
push:
branches:
- dev
pull_request:
jobs:
test_minimum_md4c:
name: Test minimum MD4C version
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- id: md4c-version
name: Get compatible MD4C version
uses: ./.github/actions/md4c-version
- name: Fetch MD4C
uses: actions/checkout@v3
with:
repository: mity/md4c
ref: release-${{steps.md4c-version.outputs.md4c-min}}
path: md4c-lib
- name: Build and install MD4C
run: |
mkdir md4c-lib/build
cd md4c-lib/build
cmake ..
make
sudo make install
sudo ldconfig
- name: Install Python packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- name: Install PyMD4C with test dependencies
run: python -m pip install .[test]
- name: Check setup.py
run: python setup.py check -m -s
- name: Run flake8
run: flake8 setup.py md4c/
- name: Run Pytest
run: pytest -vv test/ --md4c-version ${{steps.md4c-version.outputs.md4c-min}}
run_tests:
name: Run tests
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- id: md4c-version
name: Get compatible MD4C version
uses: ./.github/actions/md4c-version
- name: Fetch MD4C
uses: actions/checkout@v3
with:
repository: mity/md4c
ref: release-${{steps.md4c-version.outputs.md4c-version}}
path: md4c-lib
- name: Build and install MD4C
run: |
mkdir md4c-lib/build
cd md4c-lib/build
cmake ..
make
sudo make install
sudo ldconfig
- name: Install Python packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- name: Install PyMD4C with test dependencies
run: python -m pip install .[test]
- name: Check setup.py
run: python setup.py check -m -s
- name: Run flake8
run: flake8 setup.py md4c/
- name: Run Pytest
run: pytest -vv test/