From a4c7217b72a315a8ae598f21199bef30635296fd Mon Sep 17 00:00:00 2001 From: Dong Zhou Date: Sat, 23 May 2020 16:03:04 -0400 Subject: [PATCH] add github actions --- .github/workflows/nos.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/nos.yml diff --git a/.github/workflows/nos.yml b/.github/workflows/nos.yml new file mode 100644 index 0000000..d75defa --- /dev/null +++ b/.github/workflows/nos.yml @@ -0,0 +1,25 @@ +name: gita-test + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [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 dependences + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install . + - name: Pytest + run: | + pytest tests --cov=./gita