Skip to content

Commit

Permalink
Merge pull request #304 from sahansk2/all-os-tests
Browse files Browse the repository at this point in the history
Implement testing for all operating systems as GitHub Actions
  • Loading branch information
benthayer committed Sep 6, 2020
2 parents 79e4a02 + 223f8b5 commit 3a51ab8
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 34 deletions.
33 changes: 0 additions & 33 deletions .circleci/config.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run OS tests

on:
push:
pull_request:
branches: [ master ]


jobs:
tests:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- uses: actions/setup-python@v2
with:
python-version: '3.6.7'

- name: Set up environment
run: |
pip install pytest
git config --global user.name "Github Actions"
git config --global user.email "action@github.com"
- name: Synthesize level
run: |
echo -e "y\n" | python ./make_level.py testlevel1 "Test Level 1" testskill "Test Skill"
echo -e "y\n" | python ./make_level.py testlevel2 "Test Level 2" testskill
- name: Install Git Gud
run: |
pip install .
- name: Run tests
run: python -m pytest gitgud
27 changes: 27 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check PEP8

on:
push:
pull_request:
branches: [ master ]


jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- uses: actions/setup-python@v2
with:
python-version: '3.6.7'

- name: Set up environment
run: |
pip install flake8
- name: Check flake8
run: python -m flake8 .
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
python_requires='>=3.6',
install_requires=[
'gitpython',
'gitpython==3.1.7',
'importlib_resources',
'pyyaml',
],
Expand Down

0 comments on commit 3a51ab8

Please sign in to comment.