-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 1.06 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
workflow_dispatch: # can be triggered manually
push:
branches:
- main # run for the main branch
pull_request: # and for PRs
# other branches that want testing must create a PR
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Install jq
uses: dcarbone/[email protected]
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11.6'
- name: Install packages
run: pip install jupyterlab
- name: Get conjure
run: |
wget --quiet --no-check-certificate -c https://github.com/conjure-cp/conjure/releases/download/v2.5.1/conjure-v2.5.1-linux-with-solvers.zip
unzip -q -o conjure-v2.5.1-linux-with-solvers.zip
cp -r conjure-v2.5.1-linux-with-solvers/* /usr/local/bin
- name: Install conjure-notebook
run: pip install .
- name: Run tests
run: cd test && ./run_tests.sh