Skip to content

Commit

Permalink
Update Tests (#9)
Browse files Browse the repository at this point in the history
* Update test-windows.yml

* Create test-ubuntu.yml

* Delete pythonpackage.yml

* Create test-macOS.yml
  • Loading branch information
shadowmoose authored Nov 24, 2020
1 parent 9e4da6e commit 027da16
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pytest
name: MacOS

on:
push:
Expand All @@ -7,14 +7,13 @@ on:

jobs:
run-tests:
name: ${{ matrix.os }}, ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
name: Python ${{ matrix.python-version }}
runs-on: macOS-latest
strategy:
max-parallel: 9
fail-fast: false
matrix:
os: [ubuntu, windows, macOS]
python-version: [3.5, 3.6, 3.7]
python-version: [3.5, 3.7, 3.9]

steps:
- uses: actions/checkout@v1
Expand All @@ -31,4 +30,3 @@ jobs:
- name: Test with pytest
run: |
pytest pyderman/test.py
32 changes: 32 additions & 0 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Ubuntu

on:
push:
schedule:
- cron: '0 8 * * *'

jobs:
run-tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
max-parallel: 9
fail-fast: false
matrix:
python-version: [3.5, 3.7, 3.9]

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Test with pytest
run: |
pytest pyderman/test.py
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
max-parallel: 9
fail-fast: false
matrix:
python-version: [3.5, 3.9]
python-version: [3.5, 3.7, 3.9]

steps:
- uses: actions/checkout@v1
Expand Down

0 comments on commit 027da16

Please sign in to comment.