1
0
mirror of https://github.com/cmur2/python-bme280.git synced 2024-10-31 14:56:16 +01:00
python-bme280/.github/workflows/ci.yml
2021-05-21 13:42:43 +02:00

41 lines
803 B
YAML

---
name: ci
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
schedule:
- cron: '41 4 * * 4' # weekly on thursday morning
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.7'
- '3.8'
- '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