mirror of
https://github.com/cmur2/python-veml6070.git
synced 2025-01-15 16:56:14 +01:00
43 lines
851 B
YAML
43 lines
851 B
YAML
---
|
|
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '37 4 * * 4' # weekly on thursday morning
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version:
|
|
- '3.7'
|
|
- '3.9'
|
|
- '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: |
|
|
pip install 'poetry>=1.1.0,<1.2.0'
|
|
- name: Install dependencies
|
|
run: |
|
|
poetry install
|
|
- name: Lint
|
|
run: |
|
|
make lint
|
|
- name: Test
|
|
run: |
|
|
make test
|