Feature/optional packages #27
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"] | |
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 | |
- name: Pip Compile | |
run: | | |
rm -f requirements.txt requirements-package.txt | |
pip-compile requirements-package.in -o requirements-package.txt --resolver=backtracking | |
pip-compile requirements.in -o requirements.txt --resolver=backtracking | |
pip install -r requirements.txt | |
- name: Download package | |
uses: actions/download-artifact@v3 | |
with: | |
name: 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 |