Skip to content

Commit

Permalink
[ci] Move to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Jul 10, 2021
1 parent 908e38d commit dd5167f
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 36 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deloy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload PyPi Package

on:
push:
branches:
- develop
- develop-**

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
119 changes: 119 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Generate

on:
schedule:
- cron: '23 7 * * *'
pull_request:

env:
MAKEFLAGS: -j4

jobs:
stm32-f4-g4-l0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser
- name: Generate STM32 data
run: |
cd tools/generator
make generate-stm32f4 generate-stm32g4 generate-stm32l0
- name: Synchronize Docs
run: |
python3 tools/scripts/sync_docs.py
git diff -- README.md
git status --porcelain
git diff $(git diff --name-only | sed -n 1p)
(( $(git status --porcelain | wc -l) == 0 ))
stm32-g0-h7-l4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser
- name: Generate STM32 data
run: |
cd tools/generator
make generate-stm32g0 generate-stm32h7 generate-stm32l4
- name: Synchronize Docs
run: |
python3 tools/scripts/sync_docs.py
git diff -- README.md
git status --porcelain
git diff $(git diff --name-only | sed -n 1p)
(( $(git status --porcelain | wc -l) == 0 ))
stm32-f0-f1-f2-f3-f7-l1-wb-wl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser
- name: Generate STM32 data
run: |
cd tools/generator
make generate-stm32f0 generate-stm32f1 generate-stm32f2 generate-stm32f3 \
generate-stm32f7 generate-stm32l1 generate-stm32wb generate-stm32wl
- name: Synchronize Docs
run: |
python3 tools/scripts/sync_docs.py
git diff -- README.md
git status --porcelain
git diff $(git diff --name-only | sed -n 1p)
(( $(git status --porcelain | wc -l) == 0 ))
avr-sam-ndf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lxml jinja2 deepdiff CppHeaderParser
- name: Run Unit Tests
run: |
make test
- name: Generate AVR data
run: |
cd tools/generator
make generate-avr
- name: Generate SAM data
run: |
cd tools/generator
make generate-sam
- name: Generate NRF data
run: |
cd tools/generator
make generate-nrf
- name: Synchronize Docs
run: |
python3 tools/scripts/sync_docs.py
git diff -- README.md
git status --porcelain
git diff $(git diff --name-only | sed -n 1p)
(( $(git status --porcelain | wc -l) == 0 ))
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ how to use this data.
These tools and this data set is maintained and curated by
[@salkinium][] only at [modm-io/modm-devices][modm-devices].
It is licensed under the MPLv2 license.
The CI checks daily for new data: [![](https://travis-ci.org/modm-io/modm-devices.svg?branch=develop)](https://travis-ci.org/modm-io/modm-devices)

Currently data for <!--devicecount-->3552<!--/devicecount--> devices is available.
Please open an issue or better yet a pull request for additional support.
Expand Down

0 comments on commit dd5167f

Please sign in to comment.