Skip to content

Commit

Permalink
Initial addition of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Nov 4, 2021
1 parent 1c6b4bb commit c043052
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Flake8

on: [push]

jobs:
flake8:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install Pip Dependencies
run: pip install flake8

- name: Run Flake8
run: flake8 epregressions
46 changes: 46 additions & 0 deletions .github/workflows/releases.yml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Releases

on: [push]

jobs:
release:
strategy:
matrix:
include:
- os: ubuntu-20.04
pyinstall_args: ""
wxpython: https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04/wxPython-4.1.0-cp37-cp37m-linux_x86_64.whl
- os: ubuntu-18.04
pyinstall_args: ""
wxpython: https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04/wxPython-4.1.0-cp37-cp37m-linux_x86_64.whl
- os: macos-10.15
pyinstall_args: --onefile --windowed
wxpython: wxpython
- os: windows-2019
pyinstall_args: --windowed
wxpython: wxpython

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install Pip Dependencies
shell: bash
run: pip install pyinstaller pypubsub ${{ matrix.wxpython }}

- name: Build
shell: bash
run: pyinstaller ${{ matrix.pyinstall_args }} eplaunch.spec
# pyinstaller wf_tester.spec

- name: Upload
uses: actions/upload-artifact@v2
with:
name: EPLaunch-${{ matrix.os }}
path: dist/EPLaunch
40 changes: 40 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Unit Tests

on: [push]

jobs:
unit_tests:
strategy:
matrix:
include:
- os: ubuntu-20.04
python: xvfb-run python3
pip_arg: ""
nosetests_args: --with-coverage --cover-package epregressions # --cover-html for local html results
- os: macos-10.15
python: python3
pip_arg: ""
nosetests_args: ""
#- os: windows-2019
# python: python
# pip_arg: --user
# nosetests_args: ""

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Pip Dependencies
shell: bash
run: pip install ${{ matrix.pip_arg }} -r requirements.txt
- name: Run Tests
shell: bash
run: nosetests
- name: Upload Coverage Results
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github
File renamed without changes.

0 comments on commit c043052

Please sign in to comment.