Skip to content

Commit

Permalink
updated github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulyalin committed Jun 26, 2022
1 parent b4f995a commit f7a07f6
Showing 1 changed file with 5 additions and 33 deletions.
38 changes: 5 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,7 @@ on:

jobs:

run_tests_linux:
name: Testing on Python ${{ matrix.python-version }} (${{ matrix.platform}})
defaults:
run:
# that is to run pytest from within tests directory
working-directory: test/
shell: bash
strategy:
fail-fast: false
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ]
platform: [ubuntu-latest, macOS-10.15]
runs-on: ${{ matrix.platform }}

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -r ../requirements-dev.txt
- name: Run pytest
run: pytest -vv -s

run_tests_windows:
run_tests:
name: Testing on Python ${{ matrix.python-version }} (${{ matrix.platform}})
defaults:
run:
Expand All @@ -48,7 +20,7 @@ jobs:
fail-fast: false
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
platform: [windows-latest]
platform: [ubuntu-latest, macOS-10.15, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
Expand All @@ -60,7 +32,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -r ../requirements-dev.txt
python -m pip install poetry
python -m poetry install
- name: Run pytest
run: pytest -vv
run: pytest -vv -s

0 comments on commit f7a07f6

Please sign in to comment.