-
Notifications
You must be signed in to change notification settings - Fork 27
46 lines (43 loc) · 1.37 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: build
# Controls when the action will run.
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -U numpy
pip install mypy
pip install types-PyYAML
pip install pytest
pip install pytest-cov
pip install pylint
pip install .
pip list
- name: Run tests
run: |
pytest --cov-config=.coveragerc --cov=vasppy --cov-report lcov
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@1.1.3
with:
path-to-lcov: ./coverage.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Static type checking
run: |
mypy vasppy
- name: PyLint
run: |
pylint --errors-only vasppy