Skip to content

Update README.md

Update README.md #259

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Tests
on:
push:
branches: [ "master", "fix-consistency-tests"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
pip install -r requirements-dev.txt
- shell: bash
id: write-license
env:
WLSLICENSE: ${{ secrets.WLSLICENSE }}
run: |
echo "$WLSLICENSE" > $PWD/gurobi.lic
echo "grb_license_file=$PWD/gurobi.lic" >> $GITHUB_OUTPUT
- name: Test with pytest
env:
CICD_ACTIVE: ${{ secrets.CICD_ACTIVE }}
GRB_LICENSE_FILE: ${{ steps.write-license.outputs.grb_license_file }}
run: |
pytest -v -m pipeline_test