Skip to content

Update README.md

Update README.md #6

name: pytest-py3.11
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/cache@v4
id: cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install system dependencies
run: |
sudo apt update && sudo apt install -y graphviz graphviz-dev glpk-utils
- name: Install Python dependencies
run: |
python3.11 -m pip install -v --upgrade pip
python3.11 -m pip install -v -U -r requirements.txt
python3.11 -m pip install -vv -e .
- name: Test with pytest
run: |
python3.11 -m pytest -vv tests/