Debian Codegraph @

.github/workflows/build.yml

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 name: build
2
3 on:
4 schedule:
5 # Every friday at 4am UTC
6 - cron: '0 4 * * 5'
7 push:
8 branches: [ master ]
9 pull_request:
10 branches: [ master ]
11
12 jobs:
13 test:
14 strategy:
15 fail-fast: false
16 matrix:
17 os:
18 - ubuntu-latest
19 python_version:
20 - '3.8'
21 - '3.9'
22 - '3.10'
23 include:
24 - os: windows-latest
25 python_version: '3.10'
26 - os: ubuntu-latest
27 python_version: '3.10'
28 coverage: true
29 runs-on: ${{ matrix.os }}
30
31 steps:
32 - uses: actions/checkout@v3
33 - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
34 uses: actions/setup-python@v3
35 with:
36 python-version: ${{ matrix.python-version }}
37 - name: Install global dependencies
38 run: |
39 python -m pip install --upgrade pip
40 python -m pip install pytest pytest-cov coveralls
41 python -m pip install pandas
42 - name: Install minimal dependencies
43 if: ${{ matrix.python_version == '3.8' }}
44 run: python -m pip install scikit-learn==1.0.2 joblib==1.0.0
45 - name: Install gplearn
46 run: python -m pip install .
47 - name: Describe Python environment
48 run: |
49 python --version
50 python -c "import sklearn; print('sklearn %s' % sklearn.__version__)"
51 python -c "import joblib; print('joblib %s' % joblib.__version__)"
52 python -c "import numpy; print('numpy %s' % numpy.__version__)"
53 python -c "import scipy; print('scipy %s' % scipy.__version__)"
54 - name: Test with pytest
55 run: pytest -v --cov
56 - name: Coverage
57 if: ${{ matrix.coverage }}
58 env:
59 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 run: coveralls --service=github