ci: going gh #2
This file contains 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: mdv | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
# You can use PyPy versions in python-version. | |
# For example, pypy2.7 and pypy3.9 | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# You can test your matrix by printing the current Python version | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install Deps | |
run: pip install pytest pygments markdown coveralls | |
- name: Install mdv | |
run: pip install -e . | |
- name: Test | |
run: coverage run --include="mdv/markdownviewer.py" setup.py test | |
- name: Report | |
run: coverage report | |