python-bme280/.github/workflows/ci.yml

43 lines
874 B
YAML
Raw Normal View History

---
name: ci
on:
push:
2019-12-15 23:12:15 +01:00
branches: [master]
pull_request:
2019-12-15 23:12:15 +01:00
branches: [master]
workflow_dispatch:
schedule:
- cron: '41 4 * * 4' # weekly on thursday morning
jobs:
build:
runs-on: ubuntu-22.04
strategy:
2022-01-03 13:40:46 +01:00
fail-fast: false
matrix:
python-version:
- '3.7'
- '3.9'
2021-10-26 13:14:39 +02:00
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v3
- run: python -m pip install --upgrade pip
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
2023-05-12 13:29:54 +02:00
curl -sSL "https://install.python-poetry.org" | python3 -
- name: Install dependencies
run: |
poetry install
- name: Lint
run: |
make lint
- name: Test
run: |
make test