Add bookmark macros from hyperref #59
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: CI tests | |
on: | |
pull_request: | |
paths-ignore: | |
- 'figs/*' | |
- '*.md' | |
push: | |
paths-ignore: | |
- 'figs/*' | |
- '*.md' | |
workflow_dispatch: | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages | |
run: | | |
python -m pip install pytest | |
- name: Test with module pytest | |
run: | | |
python -m pytest tests | |
test-install: | |
name: Test import of packages after local install | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@master | |
with: | |
path: YaLafi | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update pip | |
run: python -m pip install --upgrade pip | |
- name: Install pytest | |
run: python -m pip install pytest | |
- name: Install YaLafi | |
run: | | |
cd YaLafi | |
pip install . | |
- name: Check if yalafi is installed and accessible | |
run: python -c "import yalafi" | |
- name: Check if yalafi.shell is installed and accessible | |
run: python -c "import yalafi.shell" | |
- name: Execute the tests (without adding the pwd to pythonpath) | |
run: | | |
cd YaLafi | |
pytest tests/test_shell/test_shell.py |