Skip to content

Commit

Permalink
Merge pull request #81 from Yelp/appsec-4633-ci-b
Browse files Browse the repository at this point in the history
Migrate Travis-ci to Github actions
  • Loading branch information
Chandra158 authored Aug 17, 2023
2 parents fabb6ad + 1800d25 commit 4c1ccbe
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 18 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/fuzz-lightyear-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: fuzz-lightyear-build

on:
push:
branches: [ "master" ]
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
# tests.result_test.test_successful_sequence is flaky in GA's version of python (3.8.17)
# fixing to current python version of devbox
# also, 3.8.13 is not available for platform==win32; so setting a range
python-version: '>=3.8.10 <=3.8.13'

- name: Install dependencies and test
run: |
python -m pip install --upgrade pip setuptools tox virtualenv
tox
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/Yelp/fuzz-lightyear.svg?branch=master)](https://travis-ci.com/Yelp/fuzz-lightyear)
[![Build Status](https://github.com/Yelp/fuzz-lightyear/actions/workflows/fuzz-lightyear-build.yml/badge.svg)](https://github.com/Yelp/fuzz-lightyear/actions/workflows/fuzz-lightyear-build.yml)

# fuzz-lightyear

Expand Down
1 change: 1 addition & 0 deletions requirements-dev-minimal.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
coverage
flask
flask-restplus
multiprocess
mypy
pre-commit
pytest
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ MarkupSafe==1.1.1
monotonic==1.5
more-itertools==7.2.0
msgpack-python==0.5.6
multiprocess==0.70.15
mypy==0.720
mypy-extensions==0.4.1
nodeenv==1.3.3
Expand Down
4 changes: 2 additions & 2 deletions testing/mock_server.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import json
import logging
import multiprocessing as mp
import os
from contextlib import contextmanager
from contextlib import redirect_stdout
from time import sleep

import requests
from multiprocess import Process

from testing.vulnerable_app.__main__ import main as start_server

Expand All @@ -32,7 +32,7 @@ def spin_up_server():
is_it_up = is_server_up()
if not is_it_up:
starting_up = True
mp.Process(
Process(
target=spin_up_server,
).start()

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
project = fuzz_lightyear
# These should match the travis env list
# These should match the .github/workflows/fuzz-lightyear-build env list
envlist = pre-commit,py38
skip_missing_interpreters = true
tox_pip_extensions_ext_venv_update = true
Expand Down

0 comments on commit 4c1ccbe

Please sign in to comment.