-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from sahansk2/all-os-tests
Implement testing for all operating systems as GitHub Actions
- Loading branch information
Showing
4 changed files
with
73 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "[email protected]" | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters