Skip to content

Commit

Permalink
Merge pull request #14 from Hazboun6/dev
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
Hazboun6 authored Sep 14, 2021
2 parents 2e6d036 + 95ac9f5 commit f9aea45
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,45 @@ on:
types:
- published
jobs:
lint:
runs-on: ubuntu-latest
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and package
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install flake8 pytest black pytest-cov
NO_MKL=1 python -m pip install -e .
- name: Display Python, pip, setuptools, and all installed versions
run: |
python -c "import sys; print(f'Python {sys.version}')"
python -c "import pip; print(f'pip {pip.__version__}')"
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')"
python -m pip freeze
#- name: Run lint
# run: make lint
- name: Test with pytest
run: make test
- name: Codecov
uses: codecov/codecov-action@v1
#with:
# fail_ci_if_error: true

build:
needs: [tests]
runs-on: ubuntu-latest
if: github.event_name == 'release'
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit f9aea45

Please sign in to comment.