File tree Expand file tree Collapse file tree 4 files changed +85
-2
lines changed Expand file tree Collapse file tree 4 files changed +85
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : " CodeQL"
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+ schedule :
9
+ - cron : " 29 13 * * 1"
10
+
11
+ jobs :
12
+ analyze :
13
+ name : Analyze
14
+ runs-on : ubuntu-latest
15
+ permissions :
16
+ actions : read
17
+ contents : read
18
+ security-events : write
19
+
20
+ strategy :
21
+ fail-fast : false
22
+ matrix :
23
+ language : [ python ]
24
+
25
+ steps :
26
+ - name : Checkout
27
+ uses : actions/checkout@v3
28
+
29
+ - name : Initialize CodeQL
30
+ uses : github/codeql-action/init@v2
31
+ with :
32
+ languages : ${{ matrix.language }}
33
+ queries : +security-and-quality
34
+
35
+ - name : Autobuild
36
+ uses : github/codeql-action/autobuild@v2
37
+
38
+ - name : Perform CodeQL Analysis
39
+ uses : github/codeql-action/analyze@v2
40
+ with :
41
+ category : " /language:${{ matrix.language }}"
Original file line number Diff line number Diff line change 40
40
echo ::set-output name=version::$VERSION
41
41
NAME="sqlalchemy_iris"-${VERSION}-py3-none-any
42
42
echo ::set-output name=name::$NAME
43
- - name : Build package
44
- run : python -m build
43
+ - name : Install requirements
44
+ run : |
45
+ pip install -U pip setuptools
46
+ pip install -r requirements-dev.txt
47
+ pip install -r requirements-iris.txt
48
+ pip install -e .
49
+
50
+ - name : Build Python package
51
+ run : ./scripts/build-dist.sh
45
52
- name : Publish package
46
53
uses : pypa/gh-action-pypi-publish@release/v1.5
47
54
with :
Original file line number Diff line number Diff line change
1
+ https://github.com/intersystems-community/intersystems-irispython/releases/download/3.4.2/intersystems_iris-3.4.2-py3-none-any.whl
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ packages=(" iris" " intersystems_iris" " irisnative" )
4
+ for package in ${packages[@]} ;
5
+ do
6
+ rm -f ./$package
7
+ package_path=` python -c " import importlib.util; print(importlib.util.find_spec('${package} ').submodule_search_locations[0])" `
8
+ ln -s $package_path ./$package
9
+ done
10
+
11
+ set -eo pipefail
12
+
13
+ PROJECT=" $( cd " $( dirname " $0 " ) /.." ; pwd -P ) "
14
+
15
+ PYTHON_BIN=${PYTHON_BIN:- python3}
16
+
17
+ echo " $PYTHON_BIN "
18
+
19
+ set -x
20
+
21
+ rm -rf " $PROJECT " /dist
22
+ rm -rf " $PROJECT " /build
23
+ mkdir -p " $PROJECT " /dist
24
+
25
+ cd " $PROJECT "
26
+ $PYTHON_BIN setup.py sdist bdist_wheel
27
+
28
+ for package in ${packages[@]} ;
29
+ do
30
+ rm -f $package
31
+ done
32
+ rm -rf intersystems-irispython
33
+
34
+ set +x
You can’t perform that action at this time.
0 commit comments