Commit 2c3b3405ee02041a3e754888c1e06da1ad8d7e4e
1 parent
1fb82ad7
Run on ubuntu,win,mac, py2.7,3.5,newest, pypy 3.9
Could not find a way to say "newest pypy"; "pypy3" or "pypy3.x" did not work
Showing
1 changed file
with
5 additions
and
5 deletions
.github/workflows/unittests.yml
| @@ -4,10 +4,11 @@ on: [push] | @@ -4,10 +4,11 @@ on: [push] | ||
| 4 | 4 | ||
| 5 | jobs: | 5 | jobs: |
| 6 | build: | 6 | build: |
| 7 | - runs-on: ubuntu-latest | 7 | + runs-on: ${{ matrix.os }} |
| 8 | strategy: | 8 | strategy: |
| 9 | matrix: | 9 | matrix: |
| 10 | - python-version: ["3.9"] | 10 | + os: ["ubuntu-latest", "windows-latest", "macos-latest"] |
| 11 | + python-version: ["2.7", "3.5", "3.x", "pypy-3.9"] | ||
| 11 | 12 | ||
| 12 | steps: | 13 | steps: |
| 13 | - uses: actions/checkout@v3 | 14 | - uses: actions/checkout@v3 |
| @@ -19,6 +20,5 @@ jobs: | @@ -19,6 +20,5 @@ jobs: | ||
| 19 | run: | | 20 | run: | |
| 20 | python -m pip install --upgrade pip | 21 | python -m pip install --upgrade pip |
| 21 | if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | 22 | if [ -f requirements.txt ]; then pip install -r requirements.txt; fi |
| 22 | - - name: Test with unittests | ||
| 23 | - run: | | ||
| 24 | - python -m unittest discover | ||
| 25 | \ No newline at end of file | 23 | \ No newline at end of file |
| 24 | + - name: Run unittests | ||
| 25 | + run: python -m unittest discover | ||
| 26 | \ No newline at end of file | 26 | \ No newline at end of file |