|
1 | | -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions |
2 | | -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python |
3 | | - |
4 | | -name: pytest |
5 | | - |
6 | | -on: |
7 | | - push: |
8 | | - branches: ["main"] |
9 | | - pull_request: |
10 | | - branches: ["main"] |
11 | | - |
12 | | -jobs: |
13 | | - pytest: |
14 | | - name: py${{ matrix.python-version }} on ${{ matrix.os }} |
15 | | - runs-on: ${{ matrix.os }} |
16 | | - env: |
17 | | - MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434 |
18 | | - strategy: |
19 | | - matrix: |
20 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
21 | | - python-version: ["3.9", "3.10", "3.11", "3.12"] |
22 | | - |
23 | | - steps: |
24 | | - - uses: actions/checkout@v4 |
25 | | - - name: Set up Python ${{ matrix.python-version }} |
26 | | - uses: actions/setup-python@v5 |
27 | | - with: |
28 | | - python-version: ${{ matrix.python-version }} |
29 | | - cache: "pip" |
30 | | - - name: Install dependencies |
31 | | - run: | |
32 | | - pip install -r requirements.txt |
33 | | - pip install pytest isort black flake8 |
34 | | - pip install ecos |
35 | | - - name: Test with pytest |
36 | | - run: | |
37 | | - pytest ./tests |
38 | | - - name: Check with isort |
39 | | - run: | |
40 | | - isort --check --diff . |
41 | | - - name: Check with black |
42 | | - run: | |
43 | | - black --check --diff . |
44 | | - - name: Check with flake8 |
45 | | - run: | |
46 | | - flake8 --show-source --statistics . |
| 1 | +## This workflow will install Python dependencies, run tests and lint with a variety of Python versions |
| 2 | +## For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python |
| 3 | +# |
| 4 | +#name: pytest |
| 5 | +# |
| 6 | +#on: |
| 7 | +# push: |
| 8 | +# branches: ["main"] |
| 9 | +# pull_request: |
| 10 | +# branches: ["main"] |
| 11 | +# |
| 12 | +#jobs: |
| 13 | +# pytest: |
| 14 | +# name: py${{ matrix.python-version }} on ${{ matrix.os }} |
| 15 | +# runs-on: ${{ matrix.os }} |
| 16 | +# env: |
| 17 | +# MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434 |
| 18 | +# strategy: |
| 19 | +# matrix: |
| 20 | +# os: [ubuntu-latest, macos-latest, windows-latest] |
| 21 | +# python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 22 | +# |
| 23 | +# steps: |
| 24 | +# - uses: actions/checkout@v4 |
| 25 | +# - name: Set up Python ${{ matrix.python-version }} |
| 26 | +# uses: actions/setup-python@v5 |
| 27 | +# with: |
| 28 | +# python-version: ${{ matrix.python-version }} |
| 29 | +# cache: "pip" |
| 30 | +# - name: Install dependencies |
| 31 | +# run: | |
| 32 | +# pip install -r requirements.txt |
| 33 | +# pip install pytest |
| 34 | +# pip install ecos |
| 35 | +# - name: Test with pytest |
| 36 | +# run: | |
| 37 | +# pytest ./tests |
| 38 | +# #- name: Check with isort |
| 39 | +# # run: | |
| 40 | +# # isort --check --diff . |
| 41 | +# #- name: Check with black |
| 42 | +# # run: | |
| 43 | +# # black --check --diff . |
| 44 | +# #- name: Check with flake8 |
| 45 | +# # run: | |
| 46 | +# # flake8 --show-source --statistics . |
0 commit comments