##// END OF EJS Templates
Move optional dependencies to a separate set
Move optional dependencies to a separate set

File last commit:

r27104:eac76a50
r27104:eac76a50
Show More
test.yml
55 lines | 1.6 KiB | text/x-yaml | YamlLexer
Blazej Michalik
Add GHA tests
r26431 name: Run tests
Matthew Feickert
ci: Add schedule and workflow_dispatch support
r26840 on:
push:
pull_request:
# Run weekly on Monday at 1:23 UTC
schedule:
- cron: '23 1 * * 1'
workflow_dispatch:
Blazej Michalik
Add GHA tests
r26431
jobs:
test:
Matthew Feickert
ci: Add testing for macOS on ends
r26841 runs-on: ${{ matrix.os }}
Blazej Michalik
Add GHA tests
r26431 strategy:
matrix:
Matthew Feickert
ci: Add testing for macOS on ends
r26841 os: [ubuntu-latest]
Nikita Kniazev
Add Python 3.10 CI runners
r27062 python-version: ["3.7", "3.8", "3.9", "3.10"]
Nikita Kniazev
Move optional dependencies to a separate set
r27104 deps: [test_extra]
Matthew Feickert
ci: Add testing for macOS on ends
r26841 # Test all on ubuntu, test ends on macos
include:
- os: macos-latest
python-version: "3.7"
Nikita Kniazev
Move optional dependencies to a separate set
r27104 deps: test_extra
Matthew Feickert
ci: Add testing for macOS on ends
r26841 - os: macos-latest
Nikita Kniazev
Add Python 3.10 CI runners
r27062 python-version: "3.10"
Nikita Kniazev
Move optional dependencies to a separate set
r27104 deps: test_extra
# Tests minimal dependencies set
- os: ubuntu-latest
python-version: "3.10"
deps: test
Blazej Michalik
Add GHA tests
r26431
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
Nikita Kniazev
CI: Install texlive to run latex tests
r27085 - name: Install latex
Nikita Kniazev
Move optional dependencies to a separate set
r27104 if: runner.os == 'Linux' && matrix.deps == 'test_extra'
Nikita Kniazev
CI: Install texlive to run latex tests
r27085 run: sudo apt-get -yq -o Acquire::Retries=3 --no-install-suggests --no-install-recommends install texlive dvipng
Blazej Michalik
Add GHA tests
r26431 - name: Install and update Python dependencies
run: |
Thomas Kluyver
Also install wheel package
r26442 python -m pip install --upgrade pip setuptools wheel
Nikita Kniazev
Move optional dependencies to a separate set
r27104 python -m pip install --upgrade -e .[${{ matrix.deps }}]
python -m pip install --upgrade check-manifest pytest-cov
Thomas Kluyver
Add check-manifest command as part of tests job
r26440 - name: Check manifest
run: check-manifest
Blazej Michalik
Add GHA tests
r26431 - name: pytest
Nikita Kniazev
CI: Colorize and widen Pytest summary...
r26992 env:
COLUMNS: 120
Blazej Michalik
Add GHA tests
r26431 run: |
Nikita Kniazev
CI: Colorize and widen Pytest summary...
r26992 pytest --color=yes -v --cov --cov-report=xml
Thomas Kluyver
Name codecov step
r26443 - name: Upload coverage to Codecov
Thomas Kluyver
Use codecov Github action v2
r26851 uses: codecov/codecov-action@v2