diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index c01b1441..00000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: docs - -on: - push: - branches: - - main - paths: - - 'docs/**' - - 'AUTHORS.md' - - 'CONTRIBUTING.md' - - 'HISTORY.md' - - 'README.md' - pull_request: - paths: - - 'docs/**' - - 'AUTHORS.md' - - 'CONTRIBUTING.md' - - 'HISTORY.md' - - 'README.md' -jobs: - run: - continue-on-error: True - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - python-version: [3.8] - - timeout-minutes: 30 - - steps: - - uses: actions/checkout@master - - uses: actions/setup-python@master - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install tox - - # Install markdown-spellcheck - sudo npm install -g markdown-spellcheck - - name: Generate Documentation - run: tox -e docs - - name: Run markdown-spellcheck - run: tox -e spell_check diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 0d674423..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: lint - -on: - push: - branches: - - main - pull_request: - -jobs: - run: - continue-on-error: True - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - python-version: [3.8] - - timeout-minutes: 30 - - steps: - - uses: actions/checkout@master - - uses: actions/setup-python@master - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: pip install poetry tox - - name: Check Poetry lock file - run: make poetry-lock-check - - name: Code style check - run: | - tox -e black-check,ruff-check,vulture,darglint - - name: Static type check - run: tox -e mypy - - name: Check copyright - run: tox -e check-copyright - - name: Misc checks - run: | - tox -e bandit,safety \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 988fdd43..a9878b6f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [macos-11] python-version: [3.8, 3.9, "3.10", "3.11"] timeout-minutes: 30 @@ -37,14 +37,23 @@ jobs: # env: # ACTIONS_ALLOW_UNSECURE_COMMANDS: true # run: ... - - if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') }} - name: Unit tests and coverage (ubuntu-latest, macos-latest) + - if: matrix.os == 'macos-11' + name: Install dependencies (macos-11) + run: | + # for some reason this seems to be a necessary step for MacOS images, but not for Ubuntu and Windows + brew install hdf5 + brew install c-blosc + # https://stackoverflow.com/questions/73029883/could-not-find-hdf5-installation-for-pytables-on-m1-mac + echo "HDF5_DIR=/usr/local/" >> $GITHUB_ENV + echo "BLOSC_DIR=/usr/local/" >> $GITHUB_ENV + - if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-11') }} + name: Unit tests and coverage (ubuntu-latest, macos-11) run: | pyver=`echo ${{ matrix.python-version }} | tr -d "."` tox -e py${pyver} -- -m 'not e2e' tox -e py${pyver}-nb - - if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') }} - name: Notebook tests (ubuntu-latest, macos-latest) + - if: ${{ (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-11') }} + name: Notebook tests (ubuntu-latest, macos-11) run: | pyver=`echo ${{ matrix.python-version }} | tr -d "."` tox -e py${pyver}-nb