Skip to content

Commit

Permalink
test graph-jsp-env with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nhuet committed Dec 2, 2024
1 parent ce83792 commit 4e03aae
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,19 @@ concurrency:
cancel-in-progress: true

jobs:
get-archi:
strategy:
matrix:
python-version: ["3.9", "3.12"]
os: ["macos-latest", "macos-13", "windows-latest", "ubuntu-latest"]
fail-fast: false
runs-on: ${{ matrix.os }}
test-jsp-env:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- run: |
echo ${{ matrix }}
uname -a
if [ "${{ startsWith(matrix.os, 'windows') || (startsWith(matrix.os, 'macos') && matrix.python-version == '3.12') }}" == false ]; then
echo "install toulbar2"
fi
- run: |
pip install matplotlib
python -c "import matplotlib; matplotlib.use('agg'); import matplotlib.pyplot as plt; plt.subplots(); print('agg=OK')"
python -c "import matplotlib; matplotlib.use('tkagg'); import matplotlib.pyplot as plt; plt.subplots(); print('tkagg=OK')"
python-version: "3.12"
- name: Install scikit-decide and test dependencies
run: |
pip install graph-jsp-env
- name: test importing it
run: |
python -c "from graph_jsp_env.disjunctive_graph_jsp_env import DisjunctiveGraphJspEnv"

0 comments on commit 4e03aae

Please sign in to comment.