Fix CI testing errors python 3.11 & dask #70
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |