##// END OF EJS Templates
Merge pull request #13300 from Kojoley/dvipng...
Merge pull request #13300 from Kojoley/dvipng CI: Install texlive and dvipng to run latex tests

File last commit:

r27085:e8d5d4b1
r27088:f9ea2057 merge
Show More
test.yml
50 lines | 1.5 KiB | text/x-yaml | YamlLexer
name: Run tests
on:
push:
pull_request:
# Run weekly on Monday at 1:23 UTC
schedule:
- cron: '23 1 * * 1'
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
# Test all on ubuntu, test ends on macos
include:
- os: macos-latest
python-version: "3.7"
- os: macos-latest
python-version: "3.10"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install latex
if: runner.os == 'Linux'
run: sudo apt-get -yq -o Acquire::Retries=3 --no-install-suggests --no-install-recommends install texlive dvipng
- name: Install and update Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade -e file://$PWD#egg=ipython[test]
python -m pip install --upgrade --upgrade-strategy eager trio curio
python -m pip install --upgrade pytest pytest-cov pytest-trio 'matplotlib!=3.2.0' pandas
python -m pip install --upgrade check-manifest pytest-cov anyio
- name: Check manifest
run: check-manifest
- name: pytest
env:
COLUMNS: 120
run: |
pytest --color=yes -v --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2