From f9ab6d5b97856ff5a64414397607b86c3a34ebdd Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Wed, 15 Jul 2020 22:42:50 -0500 Subject: Run CI on macos, windows, and ubuntu --- .github/workflows/python-package-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index e1037ea..fcf8dd3 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -9,10 +9,11 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: python-version: [3.6, 3.7, 3.8] + os: [macos-latest, ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 @@ -37,7 +38,6 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml flags: unittests - env_vars: OS,PYTHON name: codecov-umbrella fail_ci_if_error: true -- cgit v1.2.3 From 52566535a40e78249a35ef6f340e85d0adf40311 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 25 Jul 2020 20:29:27 -0500 Subject: Add security check & shorten dep install time for CI --- .github/workflows/python-package-ci.yml | 4 ++-- .github/workflows/python-security.yml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/python-security.yml (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index fcf8dd3..00f374d 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -26,8 +26,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install poetry - poetry install -vvv + pip install poetry codecov pytest pytest-cov taskipy + poetry install -v --no-dev - name: Run tests run: | poetry run task test_ci diff --git a/.github/workflows/python-security.yml b/.github/workflows/python-security.yml new file mode 100644 index 0000000..884f603 --- /dev/null +++ b/.github/workflows/python-security.yml @@ -0,0 +1,10 @@ +on: [push] + +jobs: + security_checks: + runs-on: ubuntu-latest + name: Execute the pycharm-security action + steps: + - uses: actions/checkout@v1 + - name: Run PyCharm Security + uses: tonybaloney/pycharm-security@master -- cgit v1.2.3 From 0a31b395c9275f48a42159559c3cab0df169db62 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 26 Jul 2020 18:21:08 -0500 Subject: Restrict when CI runs to lirc/ and tests/ file changes --- .github/workflows/python-package-ci.yml | 13 ++++++++++--- .github/workflows/python-security.yml | 10 ---------- 2 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/python-security.yml (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index 00f374d..92cf718 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -2,9 +2,13 @@ name: python package ci on: push: - branches: [ master, dev, test-ci ] + paths: + - "lirc/**" + - "tests/**" pull_request: - branches: [ master, dev, test-ci ] + paths: + - "lirc/**" + - "tests/**" jobs: build: @@ -43,4 +47,7 @@ jobs: - name: Build Package run: | - poetry build \ No newline at end of file + poetry build + + - name: Security Checks + uses: tonybaloney/pycharm-security@master \ No newline at end of file diff --git a/.github/workflows/python-security.yml b/.github/workflows/python-security.yml deleted file mode 100644 index 884f603..0000000 --- a/.github/workflows/python-security.yml +++ /dev/null @@ -1,10 +0,0 @@ -on: [push] - -jobs: - security_checks: - runs-on: ubuntu-latest - name: Execute the pycharm-security action - steps: - - uses: actions/checkout@v1 - - name: Run PyCharm Security - uses: tonybaloney/pycharm-security@master -- cgit v1.2.3 From 2891c685d944feacb08493151d194858b25b8acd Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 26 Jul 2020 18:22:31 -0500 Subject: Simplify `run` section for tests and build steps --- .github/workflows/python-package-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index 92cf718..0a9f333 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -33,8 +33,7 @@ jobs: pip install poetry codecov pytest pytest-cov taskipy poetry install -v --no-dev - name: Run tests - run: | - poetry run task test_ci + run: poetry run task test_ci - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 @@ -46,8 +45,7 @@ jobs: fail_ci_if_error: true - name: Build Package - run: | - poetry build + run: poetry build - name: Security Checks uses: tonybaloney/pycharm-security@master \ No newline at end of file -- cgit v1.2.3 From 5eeaa00b055bdbd5eece7b0387c6dc9847ece9d6 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 26 Jul 2020 18:48:59 -0500 Subject: Install all deps for CI --- .github/workflows/python-package-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index 0a9f333..4979242 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -30,8 +30,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install poetry codecov pytest pytest-cov taskipy - poetry install -v --no-dev + pip install poetry + poetry install -v - name: Run tests run: poetry run task test_ci -- cgit v1.2.3 From ad53c457b526a52a7fdba9c2032ae0153959d930 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 26 Jul 2020 21:44:27 -0500 Subject: Remove ci security check --- .github/workflows/python-package-ci.yml | 3 --- 1 file changed, 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index 4979242..18a55ca 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -46,6 +46,3 @@ jobs: - name: Build Package run: poetry build - - - name: Security Checks - uses: tonybaloney/pycharm-security@master \ No newline at end of file -- cgit v1.2.3 From 07ba9b3354d2b85a3de25ddc459c94bbea253d17 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 3 Oct 2020 22:24:31 -0500 Subject: Only run CI on ubuntu --- .github/workflows/python-package-ci.yml | 56 ++++++++++++++++----------------- 1 file changed, 27 insertions(+), 29 deletions(-) (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index 18a55ca..6725ebb 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -12,37 +12,35 @@ on: jobs: build: - - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: matrix: python-version: [3.6, 3.7, 3.8] - os: [macos-latest, ubuntu-latest, windows-latest] 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 poetry - poetry install -v - - name: Run tests - run: poetry run task test_ci - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml - flags: unittests - name: codecov-umbrella - fail_ci_if_error: true - - - name: Build Package - run: poetry build + - 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 poetry + poetry install -v + - name: Run tests + run: poetry run task test_ci + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + flags: unittests + name: codecov-umbrella + fail_ci_if_error: true + + - name: Build Package + run: poetry build -- cgit v1.2.3 From e4331b97cf847c4294e35aa5a4248e6061c26dbf Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 4 Oct 2020 10:32:01 -0500 Subject: Add system lirc install in CI --- .github/workflows/python-package-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index 6725ebb..a137881 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -30,6 +30,12 @@ jobs: python -m pip install --upgrade pip pip install poetry poetry install -v + + - name: Install and run LIRC + run: | + sudo apt-get install lirc + sudo lircd + - name: Run tests run: poetry run task test_ci -- cgit v1.2.3 From 022f9741c1c31526edbbd183c14d09b86714e644 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 4 Oct 2020 10:52:49 -0500 Subject: Remove `sudo lircd` command --- .github/workflows/python-package-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/python-package-ci.yml b/.github/workflows/python-package-ci.yml index a137881..81ec2e8 100644 --- a/.github/workflows/python-package-ci.yml +++ b/.github/workflows/python-package-ci.yml @@ -31,10 +31,9 @@ jobs: pip install poetry poetry install -v - - name: Install and run LIRC + - name: Install system LIRC run: | sudo apt-get install lirc - sudo lircd - name: Run tests run: poetry run task test_ci -- cgit v1.2.3