Skip to content

Commit

Permalink
Move CI from azure to github (#178)
Browse files Browse the repository at this point in the history
* Move CI from azure to github

* fix syntax
  • Loading branch information
ludeeus authored Feb 1, 2021
1 parent 0a2c79b commit 13c692e
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 205 deletions.
18 changes: 12 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "06:00"
open-pull-requests-limit: 10
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "06:00"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
time: "06:00"
open-pull-requests-limit: 10
36 changes: 36 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Wheels

on:
push:
branches:
- master
paths:
- requirements.txt
- requirements_build.txt

jobs:
build:
name: Build ${{ matrix.arch }}-python${{ matrix.python }}-alpine${{ matrix.alpine }}
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.7", "3.8"]
alpine: ["3.10", "3.11", "3.12"]
arch: ["aarch64", "armhf", "armv7", "amd64", "i386"]

steps:
- name: Check out code from GitHub
uses: actions/checkout@v2

- name: Prepare requirements
run: cat requirements.txt requirements_build.txt > requirements_all.txt

- name: Build wheels
uses: home-assistant/wheels@master
with:
tag: ${{ matrix.python }}-alpine${{ matrix.alpine }}
arch: ${{ matrix.arch }}
wheels-host: ${{ secrets.WHEELS_HOST }}
wheels-key: ${{ secrets.WHEELS_KEY }}
apk: "build-base;libffi-dev;openssl-dev"
requirements: "requirements_all.txt"
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
PYTHON_VERSION: 3.8
HADOLINT_VERSION: "v1.16.3"
VIRTUALENV_PIP: "20.2"

jobs:
tox:
name: Tox
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/[email protected]
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install tox
run: python3 -m pip install tox

- name: Run tox
run: tox

hadolint:
name: Hadolint
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2

- name: Run Hadolint
run: |
docker run --rm -i \
-v $(pwd)/.hadolint.yaml:/.hadolint.yaml:ro \
hadolint/hadolint:${{ env.HADOLINT_VERSION }} < Dockerfile
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[![Build Status](https://dev.azure.com/home-assistant/Hass.io/_apis/build/status/wheels?branchName=master)](https://dev.azure.com/home-assistant/Hass.io/_build/latest?definitionId=11&branchName=master)

# Hass.io Wheels builder
# Home Assistant Wheels builder

```sh

Expand Down
40 changes: 0 additions & 40 deletions azure-pipelines-ci.yml

This file was deleted.

73 changes: 0 additions & 73 deletions azure-pipelines-release.yml

This file was deleted.

83 changes: 0 additions & 83 deletions azure-pipelines-wheel.yml

This file was deleted.

0 comments on commit 13c692e

Please sign in to comment.