forked from brain-slam/slam
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 988 Bytes
/
Copy pathcontinuous_integration.yml
File metadata and controls
38 lines (34 loc) · 988 Bytes
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
name: Python package
on: [pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-22.04']
python-version: ["3.12"]
exclude:
- os: 'ubuntu-22.04'
python-version: '3.6'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: VirtualEnv
run: |
python -m venv slam-env
source slam-env/bin/activate
- name: Linting
run: |
pip install flake8
flake8 --ignore=E501,W503,W504 slam/
flake8 --ignore=E501,W503,W504 tests/
- name: Install all the dependencies
run: |
pip install .['full']
- name: Run tests with pytest
run: |
pip install pytest pytest-cov coveralls
pytest -W default --cov=slam/