Skip to content

Commit 383098b

Browse files
committed
Copy CI configuration from main
Hopefully this will prevent errors from happening during CI tests
1 parent e7518b7 commit 383098b

File tree

1 file changed

+11
-41
lines changed

1 file changed

+11
-41
lines changed

.github/workflows/python-unittest-ci.yml

Lines changed: 11 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -26,46 +26,16 @@ jobs:
2626
run: |
2727
python -m pip install --upgrade pip
2828
pip install pytest
29-
pip install mosek numba numpy scipy sympy tqdm
30-
# - name: Set up MOSEK license
31-
# env:
32-
# MOSEK_LICENSE_KEY: ${{ secrets.MOSEK_LICENSE_KEY }}
33-
# run: |
34-
# mkdir -p $HOME/mosek
35-
# echo "$MOSEK_LICENSE_KEY" > $HOME/mosek/mosek.lic
29+
pip install mosek numba networkx numpy scipy sympy tqdm
30+
- name: Set up MOSEK license
31+
env:
32+
MOSEK_LICENSE_KEY: ${{ secrets.MOSEK_LICENSE_KEY }}
33+
run: |
34+
mkdir -p $HOME/mosek
35+
echo "$MOSEK_LICENSE_KEY" > $HOME/mosek/mosek.lic
3636
- name: Test with pytest
3737
run: |
38-
pytest -v \
39-
--ignore=test/test_writers.py \
40-
--ignore=test/test_optimize.py \
41-
--deselect=test/test_solvers.py::TestSDP::test_LP_with_SDP \
42-
--deselect=test/test_solvers.py::TestSDP::test_SDP \
43-
--deselect=test/test_solvers.py::TestSDP::test_SDP_equalities \
44-
--deselect=test/test_solvers.py::TestSDP::test_SDP_inequalities \
45-
--deselect=test/test_solvers.py::TestLP::test_LP_free_bounds \
46-
--deselect=test/test_solvers.py::TestLP::test_LP_non_negative_bounds \
47-
--deselect=test/test_solvers.py::TestLP::test_LP_lower_bounds_of_zero \
48-
--deselect=test/test_solvers.py::TestLP::test_LP_free_bounds_of_zero_and_non_negative \
49-
--deselect=test/test_solvers.py::TestLP::test_LP_negative_lower_bounds \
50-
--deselect=test/test_solvers.py::TestLP::test_LP_negative_lower_bounds_and_non_negative \
51-
--deselect=test/test_solvers.py::TestSolverProcesses::test_semiknown_constraints \
52-
--deselect=test/test_solvers.py::TestSolverProcesses::test_partially_known_objective \
53-
--deselect=test/test_pipeline.py::TestSDPOutput::test_bounds \
54-
--deselect=test/test_pipeline.py::TestSDPOutput::test_CHSH \
55-
--deselect=test/test_pipeline.py::TestSDPOutput::test_GHZ_commuting \
56-
--deselect=test/test_pipeline.py::TestSDPOutput::test_GHZ_NC \
57-
--deselect=test/test_pipeline.py::TestSDPOutput::test_instrumental \
58-
--deselect=test/test_pipeline.py::TestSDPOutput::test_lpi \
59-
--deselect=test/test_pipeline.py::TestSDPOutput::test_supports \
60-
--deselect=test/test_pipeline.py::TestLPOutput::test_bounds \
61-
--deselect=test/test_pipeline.py::TestLPOutput::test_instrumental \
62-
--deselect=test/test_pipeline.py::TestLPOutput::test_supports \
63-
--deselect=test/test_pipeline.py::TestInstrumental::test_instrumental_fanout \
64-
--deselect=test/test_pipeline.py::TestInstrumental::test_instrumental_nonfanout \
65-
--deselect=test/test_pipeline.py::TestBell::test_bell_fanout \
66-
--deselect=test/test_pipeline.py::TestBell::test_bell_nonfanout \
67-
--deselect=test/test_pipeline.py::TestTriangle::test_triangle_fanout \
68-
--deselect=test/test_pipeline.py::TestTriangle::test_triangle_nonfanout \
69-
--deselect=test/test_pipeline.py::TestEvans::test_evans_fanout \
70-
--deselect=test/test_pipeline.py::TestEvans::test_evans_nonfanout \
71-
--deselect=test/test_pipeline.py::TestFullNN::test_fullnetworknonlocality_3partite_line
38+
pytest -v
39+
- name: Clean up MOSEK license file
40+
run: |
41+
rm $HOME/mosek/mosek.lic

0 commit comments

Comments
 (0)