-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (47 loc) · 1.73 KB
/
Copy pathbuild.yml
File metadata and controls
57 lines (47 loc) · 1.73 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: build
# What gets published, rather than what is in the working tree. `tests.yml`
# already lints and tests the sources across the whole matrix; running the same
# flake8 twice bought no extra signal, so this workflow builds the
# distributions instead and proves the wheel stands on its own — no source
# tree, no demos folder, no editable install.
on: [push]
# Nothing here writes to the repository. Said explicitly so it stays true
# even if the repository default is loosened again.
permissions:
contents: read
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
submodules: false
- uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Build the sdist and the wheel
run: |
python -m pip install --upgrade pip build twine
python -m build
twine check dist/*
- name: Install the wheel into a clean environment
run: |
python -m venv /tmp/fresh
/tmp/fresh/bin/pip install dist/*.whl
- name: Plan with the installed package, away from the repository
working-directory: /tmp
run: |
/tmp/fresh/bin/python -c "import jupyddl; print(jupyddl.__version__)"
/tmp/fresh/bin/jupyddl generate gripper -n 3 --seed 1 -o /tmp/smoke
/tmp/fresh/bin/jupyddl solve \
/tmp/smoke/gripper-03-1/domain.pddl \
/tmp/smoke/gripper-03-1/problem.pddl \
-s astar -H lmcut | tee /tmp/plan.txt
grep -q "Valid: True" /tmp/plan.txt
- uses: actions/upload-artifact@v7
with:
name: distributions
path: dist/