Skip to content

Commit

Permalink
add GitHub workflow to build and test on push
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Feb 3, 2021
1 parent 151d21a commit e88582d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 4 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: build-test-linux-on-push

on: [push]

jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build C/C++ with configure & make
run: |
sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list"
DEBIAN_FRONTEND=noninteractive
apt-get -qq update
apt-get -yqq build-dep mlt swig python3-dev kwalify
CPUS=$(grep "processor.*:" /proc/cpuinfo | wc -l)
MAKEFLAGS=-j$(( $CPUS + 1 ))
./configure --enable-gpl --enable-gpl3 --swig-languages=python
make
make install
- name: Run tests
run: |
make validate-yml
cd src/tests
qmake -r test.pro
CPUS=$(grep "processor.*:" /proc/cpuinfo | wc -l)
MAKEFLAGS=-j$(( $CPUS + 1 ))
make
make check
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ debian-stable:
- ./configure --enable-gpl --enable-gpl3 && make && make install
# there's no `check` or `test` `make` target

fedora-31:
image: fedora:31
fedora-33:
image: fedora:33
script:
- yum --assumeyes groupinstall "Development Tools"
- yum --assumeyes install yasm gavl-devel libsamplerate-devel libxml2-devel ladspa-devel jack-audio-connection-kit-devel sox-devel SDL-devel gtk2-devel qt-devel libexif-devel libtheora-devel libvorbis-devel libvdpau-devel libsoup-devel liboil-devel python-devel alsa-lib pulseaudio-libs-devel gcc-c++
# unclear why `gcc-c++` isn't in `Development Tools`
- ./configure --enable-gpl --enable-gpl3 && make && make install

fedora-33:
image: fedora:33
fedora-32:
image: fedora:32
script:
- yum --assumeyes groupinstall "Development Tools"
- yum --assumeyes install yasm gavl-devel libsamplerate-devel libxml2-devel ladspa-devel jack-audio-connection-kit-devel sox-devel SDL-devel gtk2-devel qt-devel libexif-devel libtheora-devel libvorbis-devel libvdpau-devel libsoup-devel liboil-devel python-devel alsa-lib pulseaudio-libs-devel gcc-c++
Expand Down

0 comments on commit e88582d

Please sign in to comment.