Skip to content

Fix CI testing errors python 3.11 & dask #71

Fix CI testing errors python 3.11 & dask

Fix CI testing errors python 3.11 & dask #71

Workflow file for this run

name: OasisDataManger Testing
on:
pull_request:
push:
branches:
- main
- develop
- stable**
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
test:
name: Run Pytest
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pip-tools
run: |
python -m pip install --upgrade pip
pip install pip-tools setuptools-rust
- name: Pip Compile
run: |
pip-compile requirements.in -o requirements.txt
pip install -r requirements.txt
- name: Download package
uses: actions/download-artifact@v3
with:
name: odm_bin_package
path: ${{ github.workspace }}/
- name: install package
run: pip install ${{ needs.build.outputs.whl_filename }}
- name: Run tests
run: |
docker-compose up -d
pytest