File tree Expand file tree Collapse file tree 3 files changed +52
-6
lines changed Expand file tree Collapse file tree 3 files changed +52
-6
lines changed Original file line number Diff line number Diff line change 13
13
14
14
jobs :
15
15
build :
16
+ if : github.repository == 'john-science/mazelib'
16
17
17
18
runs-on : ubuntu-24.04
18
19
Original file line number Diff line number Diff line change
1
+ name : build wheels
2
+
3
+ permissions :
4
+ contents : read
5
+
6
+ on :
7
+ push :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+ if : github.repository == 'john-science/mazelib'
14
+
15
+ runs-on : ubuntu-24.04
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Setup Python
20
+ uses : actions/setup-python@v2
21
+ with :
22
+ python-version : " 3.13"
23
+ - name : Update package index
24
+ run : sudo apt-get update
25
+ - name : Install PIP Packages
26
+ run : |
27
+ pip install -U pip
28
+ pip install -e .
29
+ - name : Build Wheels
30
+ run : |
31
+ pip install -U wheel
32
+ mkdir dist
33
+ pip wheel . -w dist/
34
+ rm dist/Cython*.whl
35
+ rm dist/numpy*.whl
36
+ - name : Archive PIP wheel artifacts
37
+ uses : actions/upload-artifact@v4
38
+ with :
39
+ name : mazelib-wheels
40
+ path : |
41
+ dist/mazelib*.whl
42
+ retention-days : 5
Original file line number Diff line number Diff line change 1
- .PHONY : all clean uninstall install benchmark lint test wheel twine
1
+ # #########################################
2
+ # Just a handy set of dev shortcuts #
3
+ # #########################################
4
+ .PHONY : all clean uninstall install lint test benchmark wheel twine
2
5
3
6
all :
4
7
@grep -Ee ' ^[a-z].*:' Makefile | cut -d: -f1 | grep -vF all
@@ -16,15 +19,18 @@ install: uninstall
16
19
pip install -U pip
17
20
pip install .
18
21
19
- benchmark :
20
- python benchmarks/benchmarks.py
22
+ lint :
23
+ black .
21
24
22
25
test :
23
26
python test/test_maze.py
24
27
python test/test_generators.py
25
28
python test/test_solvers.py
26
29
python test/test_transmuters.py
27
30
31
+ benchmark :
32
+ python benchmarks/benchmarks.py
33
+
28
34
wheel :
29
35
pip install -U pip
30
36
pip install -U wheel
36
42
37
43
twine : wheel
38
44
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
39
-
40
- lint :
41
- black .
You can’t perform that action at this time.
0 commit comments