mirror of
				https://github.com/cmur2/python-bme280.git
				synced 2025-11-03 18:25:07 +01:00 
			
		
		
		
	ci: add GHA
- as Python 3.4 has problems on GHA we'll keep Travis for that while we still want to support 3.4
This commit is contained in:
		
							
								
								
									
										44
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					name: ci
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [master, three]
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    branches: [master, three]
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					  schedule:
 | 
				
			||||||
 | 
					  - cron: '41 4 * * 4'  # weekly on thursday morning
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  build:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        python-version:
 | 
				
			||||||
 | 
					        - '2.7'
 | 
				
			||||||
 | 
					        # Python 3.4 on GHA doesn't work due to fastdiff==0.2.0 failing with:
 | 
				
			||||||
 | 
					        #   pkg_resources.DistributionNotFound: The 'setuptools_scm>=1.15.0' distribution was not found and is required by the application
 | 
				
			||||||
 | 
					        #- '3.4'
 | 
				
			||||||
 | 
					        - '3.5'
 | 
				
			||||||
 | 
					        - '3.7'
 | 
				
			||||||
 | 
					        - '3.9'
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					    - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					    - run: python -m pip install --upgrade pip
 | 
				
			||||||
 | 
					    - name: Set up Python ${{ matrix.python-version }}
 | 
				
			||||||
 | 
					      uses: actions/setup-python@v2
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        python-version: ${{ matrix.python-version }}
 | 
				
			||||||
 | 
					    - name: Install Poetry
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        pip install poetry==1.0.10
 | 
				
			||||||
 | 
					    - name: Install dependencies
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        poetry install
 | 
				
			||||||
 | 
					    - name: Lint
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        make lint
 | 
				
			||||||
 | 
					    - name: Test
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        make test
 | 
				
			||||||
@@ -2,10 +2,7 @@
 | 
				
			|||||||
os: linux
 | 
					os: linux
 | 
				
			||||||
language: python
 | 
					language: python
 | 
				
			||||||
python:
 | 
					python:
 | 
				
			||||||
- "2.7"
 | 
					 | 
				
			||||||
- "3.4"
 | 
					- "3.4"
 | 
				
			||||||
- "3.7"
 | 
					 | 
				
			||||||
- "3.9"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
- pip install poetry==1.0.10
 | 
					- pip install poetry==1.0.10
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
# python-bme280
 | 
					# python-bme280
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[](https://travis-ci.com/cmur2/python-bme280)
 | 
					 [](https://travis-ci.com/cmur2/python-bme280)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
A Python library for accessing the [BME280 combined humidity and pressure](https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf) from Bosch via `python-smbus` using the I2C interface.
 | 
					A Python library for accessing the [BME280 combined humidity and pressure](https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf) from Bosch via `python-smbus` using the I2C interface.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user