forked from platformio/platformio-core
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Core
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-20.04, windows-latest, macos-latest]
|
|
python-version: ["3.6", "3.9", "3.11"]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: "recursive"
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox
|
|
|
|
- name: Python Lint
|
|
if: ${{ matrix.python-version != '3.6' }}
|
|
run: |
|
|
tox -e lint
|
|
|
|
- name: Integration Tests
|
|
run: |
|
|
tox -e testcore
|
|
|
|
- name: Slack Notification
|
|
uses: homoluctus/slatify@master
|
|
if: failure()
|
|
with:
|
|
type: ${{ job.status }}
|
|
job_name: '*Core*'
|
|
commit: true
|
|
url: ${{ secrets.SLACK_BUILD_WEBHOOK }}
|
|
token: ${{ secrets.SLACK_GITHUB_TOKEN }}
|