Show More
@@ -1,47 +1,50 b'' | |||||
1 | name: Run tests |
|
1 | name: Run tests | |
2 |
|
2 | |||
3 | on: |
|
3 | on: | |
4 | push: |
|
4 | push: | |
5 | pull_request: |
|
5 | pull_request: | |
6 | # Run weekly on Monday at 1:23 UTC |
|
6 | # Run weekly on Monday at 1:23 UTC | |
7 | schedule: |
|
7 | schedule: | |
8 | - cron: '23 1 * * 1' |
|
8 | - cron: '23 1 * * 1' | |
9 | workflow_dispatch: |
|
9 | workflow_dispatch: | |
10 |
|
10 | |||
11 |
|
11 | |||
12 | jobs: |
|
12 | jobs: | |
13 | test: |
|
13 | test: | |
14 | runs-on: ${{ matrix.os }} |
|
14 | runs-on: ${{ matrix.os }} | |
15 | strategy: |
|
15 | strategy: | |
16 | matrix: |
|
16 | matrix: | |
17 | os: [ubuntu-latest] |
|
17 | os: [ubuntu-latest] | |
18 | python-version: ["3.7", "3.8", "3.9", "3.10"] |
|
18 | python-version: ["3.7", "3.8", "3.9", "3.10"] | |
19 | # Test all on ubuntu, test ends on macos |
|
19 | # Test all on ubuntu, test ends on macos | |
20 | include: |
|
20 | include: | |
21 | - os: macos-latest |
|
21 | - os: macos-latest | |
22 | python-version: "3.7" |
|
22 | python-version: "3.7" | |
23 | - os: macos-latest |
|
23 | - os: macos-latest | |
24 | python-version: "3.10" |
|
24 | python-version: "3.10" | |
25 |
|
25 | |||
26 | steps: |
|
26 | steps: | |
27 | - uses: actions/checkout@v2 |
|
27 | - uses: actions/checkout@v2 | |
28 | - name: Set up Python ${{ matrix.python-version }} |
|
28 | - name: Set up Python ${{ matrix.python-version }} | |
29 | uses: actions/setup-python@v2 |
|
29 | uses: actions/setup-python@v2 | |
30 | with: |
|
30 | with: | |
31 | python-version: ${{ matrix.python-version }} |
|
31 | python-version: ${{ matrix.python-version }} | |
|
32 | - name: Install latex | |||
|
33 | if: runner.os == 'Linux' | |||
|
34 | run: sudo apt-get -yq -o Acquire::Retries=3 --no-install-suggests --no-install-recommends install texlive dvipng | |||
32 | - name: Install and update Python dependencies |
|
35 | - name: Install and update Python dependencies | |
33 | run: | |
|
36 | run: | | |
34 | python -m pip install --upgrade pip setuptools wheel |
|
37 | python -m pip install --upgrade pip setuptools wheel | |
35 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] |
|
38 | python -m pip install --upgrade -e file://$PWD#egg=ipython[test] | |
36 | python -m pip install --upgrade --upgrade-strategy eager trio curio |
|
39 | python -m pip install --upgrade --upgrade-strategy eager trio curio | |
37 | python -m pip install --upgrade pytest pytest-cov pytest-trio 'matplotlib!=3.2.0' pandas |
|
40 | python -m pip install --upgrade pytest pytest-cov pytest-trio 'matplotlib!=3.2.0' pandas | |
38 | python -m pip install --upgrade check-manifest pytest-cov anyio |
|
41 | python -m pip install --upgrade check-manifest pytest-cov anyio | |
39 | - name: Check manifest |
|
42 | - name: Check manifest | |
40 | run: check-manifest |
|
43 | run: check-manifest | |
41 | - name: pytest |
|
44 | - name: pytest | |
42 | env: |
|
45 | env: | |
43 | COLUMNS: 120 |
|
46 | COLUMNS: 120 | |
44 | run: | |
|
47 | run: | | |
45 | pytest --color=yes -v --cov --cov-report=xml |
|
48 | pytest --color=yes -v --cov --cov-report=xml | |
46 | - name: Upload coverage to Codecov |
|
49 | - name: Upload coverage to Codecov | |
47 | uses: codecov/codecov-action@v2 |
|
50 | uses: codecov/codecov-action@v2 |
General Comments 0
You need to be logged in to leave comments.
Login now