From f7a07f6725881844b2f9f461d2607a86d329baf7 Mon Sep 17 00:00:00 2001 From: Denis Date: Sun, 26 Jun 2022 13:35:02 +1000 Subject: [PATCH] updated github workflow --- .github/workflows/main.yml | 38 +++++--------------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ce0f3a..8a8d29b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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: @@ -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