inspire-schemas 61.6.4 → 61.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: test (python 2.7)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [py-2]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [py-2]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-20.04
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
include:
|
|
15
|
+
- python: python2
|
|
16
|
+
pip: pip
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@v2
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install npm dependencies
|
|
25
|
+
run: |
|
|
26
|
+
npm install buffer-shims
|
|
27
|
+
npm install --global rollup
|
|
28
|
+
|
|
29
|
+
- name: Install python dependencies
|
|
30
|
+
run: |
|
|
31
|
+
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
|
|
32
|
+
${{ matrix.python }} get-pip.py
|
|
33
|
+
${{ matrix.python }} -m ${{ matrix.pip }} install --user --upgrade pip
|
|
34
|
+
${{ matrix.python }} -m ${{ matrix.pip }} --no-cache-dir install --user -e .[tests,docs]
|
|
35
|
+
|
|
36
|
+
- name: Show python dependencies
|
|
37
|
+
run: |
|
|
38
|
+
${{matrix.pip}} --version
|
|
39
|
+
${{ matrix.python }} --version
|
|
40
|
+
${{ matrix.pip }} freeze
|
|
41
|
+
|
|
42
|
+
- name: Run tests
|
|
43
|
+
run: |
|
|
44
|
+
./run-tests.sh
|
|
@@ -14,8 +14,6 @@ jobs:
|
|
|
14
14
|
include:
|
|
15
15
|
- python: python3
|
|
16
16
|
pip: pip3
|
|
17
|
-
- python: python2
|
|
18
|
-
pip: pip
|
|
19
17
|
steps:
|
|
20
18
|
- name: Checkout
|
|
21
19
|
uses: actions/checkout@v2
|
|
@@ -42,17 +40,19 @@ jobs:
|
|
|
42
40
|
./run-tests.sh
|
|
43
41
|
|
|
44
42
|
bump:
|
|
43
|
+
outputs:
|
|
44
|
+
new_sha: ${{ steps.sha.outputs.SHA }}
|
|
45
45
|
needs: test
|
|
46
46
|
if: ${{ github.event_name == 'push' }}
|
|
47
|
-
runs-on: ubuntu-
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
48
|
steps:
|
|
49
49
|
- name: Check out the repository
|
|
50
50
|
uses: actions/checkout@v2
|
|
51
51
|
|
|
52
52
|
- name: Set up Python
|
|
53
|
-
uses: actions/setup-python@
|
|
53
|
+
uses: actions/setup-python@v5
|
|
54
54
|
with:
|
|
55
|
-
python-version: 3.
|
|
55
|
+
python-version: "3.11"
|
|
56
56
|
|
|
57
57
|
- name: Install bump2version
|
|
58
58
|
shell: bash
|
|
@@ -78,6 +78,13 @@ jobs:
|
|
|
78
78
|
branch: ${{ github.ref }}
|
|
79
79
|
tags: true
|
|
80
80
|
|
|
81
|
+
- name: get sha
|
|
82
|
+
id: sha
|
|
83
|
+
run: |
|
|
84
|
+
sha_new=$(git rev-parse HEAD)
|
|
85
|
+
echo $sha_new
|
|
86
|
+
echo "::set-output name=SHA::$sha_new"
|
|
87
|
+
|
|
81
88
|
publish:
|
|
82
89
|
needs: bump
|
|
83
90
|
if: ${{ github.event_name == 'push' }}
|
|
@@ -87,6 +94,7 @@ jobs:
|
|
|
87
94
|
uses: actions/checkout@v4
|
|
88
95
|
with:
|
|
89
96
|
fetch-depth: 0
|
|
97
|
+
ref: ${{ needs.bump.outputs.new_sha }}
|
|
90
98
|
|
|
91
99
|
- name: Set up Python
|
|
92
100
|
uses: actions/setup-python@v5
|
|
Binary file
|