From caa0512721834e0d784b1fa9e774483921ebdb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=ADdac=20Coll?= Date: Sat, 16 Oct 2021 19:05:44 +0200 Subject: [PATCH] 62: Move test workflow from travis to github actions Add new workflow --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ .gitignore | 4 +++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5f33fcd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python application + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.6 + uses: actions/setup-python@v2 + with: + python-version: 3.6 + - name: Test with pytest + run: | + python -m unittest discover \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4df1fe7..6f07e6b 100644 --- a/.gitignore +++ b/.gitignore @@ -229,5 +229,7 @@ tags # Ignore all local history of files .history -# End of https://www.gitignore.io/api/vim,python,pycharm+all,visualstudiocode +# Mac +.DS_Store +# End of https://www.gitignore.io/api/vim,python,pycharm+all,visualstudiocode