-
Notifications
You must be signed in to change notification settings - Fork 164
61 lines (52 loc) · 1.69 KB
/
import-test.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: import-test
on:
workflow_dispatch:
inputs:
indexUrl:
description: "Index Url"
required: true
default: "https://test.pypi.org/simple/"
version:
description: "version"
required: false
default: ""
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-10.15, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Check which python we use
run: |
echo $(which python)
- name: Install ConnectorX - POSIX
if: ${{ matrix.os != 'windows-latest' }}
run: |
pip install numpy importlib-metadata
version='${{ github.event.inputs.version }}'
if [ -z $version ]
then
pip install --index-url ${{ github.event.inputs.indexUrl }} connectorx
else
pip install --index-url ${{ github.event.inputs.indexUrl }} connectorx==$version
fi
- name: Install ConnectorX - Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
pip install numpy importlib-metadata
$version = '${{ github.event.inputs.version }}'
if ($version) {
pip install --index-url ${{ github.event.inputs.indexUrl }} connectorx==$version
} else {
pip install --index-url ${{ github.event.inputs.indexUrl }} connectorx
}
- name: Import
run: python -c "from connectorx import read_sql"