Skip to content

Commit

Permalink
62: Move test workflow from travis to github actions
Browse files Browse the repository at this point in the history
Add new workflow
  • Loading branch information
dcp28 committed Oct 16, 2021
1 parent 09e531b commit caa0512
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit caa0512

Please sign in to comment.