Debian Codegraph @

.github/workflows/build_test.yml

raw symbols SCIP
1 name: Build and Test
2
3 on:
4 push:
5 branches: [master]
6 pull_request:
7 branches: [master]
8
9 jobs:
10 build:
11 runs-on: ubuntu-latest
12 strategy:
13 matrix:
14 python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15
16 steps:
17 - uses: actions/checkout@v2
18 - name: Set up Python ${{ matrix.python_version }}
19 uses: actions/setup-python@v2
20 with:
21 python-version: ${{ matrix.python_version }}
22 - name: Install dependencies
23 run: |
24 python -m pip install --upgrade pip
25 pip install coveralls
26 pip install -r test-requirements.txt
27 - name: Lint with flake8
28 run: |
29 # stop the build if there are Python syntax errors or undefined names
30 flake8 meteoclimatic --count --max-complexity=10 --max-line-length=127 --statistics
31 - name: Install
32 run: |
33 pip install -e .
34 - name: Test with pytest
35 run: |
36 pytest --cov=meteoclimatic/ -v tests/
37 - name: Publish Coverage
38 env:
39 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
41 run: |
42 coveralls --service=github