|
1 | | -name: Tests |
2 | | - |
3 | | -on: [push, pull_request] |
4 | | - |
5 | | -jobs: |
6 | | - Linting: |
7 | | - runs-on: ubuntu-latest |
8 | | - |
9 | | - steps: |
10 | | - - uses: actions/checkout@v3 |
11 | | - - name: Set up Python 3.10.13 |
12 | | - uses: actions/setup-python@v3 |
13 | | - with: |
14 | | - python-version: 3.10.13 |
15 | | - - name: Linting |
16 | | - run: | |
17 | | - pip install pre-commit |
18 | | - pre-commit run --all-files |
19 | | - Linux: |
20 | | - needs: Linting |
21 | | - runs-on: ubuntu-latest |
22 | | - strategy: |
23 | | - max-parallel: 8 |
24 | | - matrix: |
25 | | - python-version: [3.10.13] |
26 | | - |
27 | | - steps: |
28 | | - - uses: actions/checkout@v3 |
29 | | - - name: Set up Python ${{ matrix.python-version }} |
30 | | - uses: actions/setup-python@v3 |
31 | | - with: |
32 | | - python-version: ${{ matrix.python-version }} |
33 | | - - name: Install dependencies |
34 | | - run: | |
35 | | - pip install -e .[dev] |
36 | | -# pip install -r requirements-dev.txt |
37 | | - - name: Test with pytest |
38 | | - run: | |
39 | | - py.test test |
40 | | - - name: Generate coverage report |
41 | | - run: | |
42 | | - pip install pytest==7.4.4 |
43 | | - pip install pytest-cov==4.1.0 |
44 | | - pytest --cov=./ --cov-report=xml |
45 | | - - name: Upload coverage reports to Codecov |
46 | | - uses: codecov/codecov-action@v3 |
47 | | - |
48 | | -# - uses: actions/cache@v1 |
49 | | -# with: |
50 | | -# path: ~/.cache/pip |
51 | | -# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} |
52 | | -# restore-keys: | |
53 | | -# ${{ runner.os }}-pip- |
| 1 | +name: Tests |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + Linting: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + |
| 9 | + steps: |
| 10 | + - uses: actions/checkout@v3 |
| 11 | + - name: Set up Python 3.10.13 |
| 12 | + uses: actions/setup-python@v3 |
| 13 | + with: |
| 14 | + python-version: 3.10.13 |
| 15 | + - name: Linting |
| 16 | + run: | |
| 17 | + pip install pre-commit |
| 18 | + pre-commit run --all-files |
| 19 | + Linux: |
| 20 | + needs: Linting |
| 21 | + runs-on: ubuntu-latest |
| 22 | + strategy: |
| 23 | + max-parallel: 8 |
| 24 | + matrix: |
| 25 | + python-version: [3.10.13] |
| 26 | + |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v3 |
| 29 | + - name: Set up Python ${{ matrix.python-version }} |
| 30 | + uses: actions/setup-python@v3 |
| 31 | + with: |
| 32 | + python-version: ${{ matrix.python-version }} |
| 33 | + - name: Install dependencies |
| 34 | + run: | |
| 35 | + pip install -e .[dev] |
| 36 | +# pip install -r requirements-dev.txt |
| 37 | + - name: Test with pytest |
| 38 | + run: | |
| 39 | + py.test test |
| 40 | + - name: Generate coverage report |
| 41 | + run: | |
| 42 | + pip install pytest==7.4.4 |
| 43 | + pip install pytest-cov==4.1.0 |
| 44 | + pytest --cov=./ --cov-report=xml |
| 45 | + - name: Upload coverage reports to Codecov |
| 46 | + uses: codecov/codecov-action@v3 |
| 47 | + |
| 48 | +# - uses: actions/cache@v1 |
| 49 | +# with: |
| 50 | +# path: ~/.cache/pip |
| 51 | +# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} |
| 52 | +# restore-keys: | |
| 53 | +# ${{ runner.os }}-pip- |
0 commit comments