-
-
Notifications
You must be signed in to change notification settings - Fork 41
51 lines (49 loc) · 1.35 KB
/
install-software.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
name: Install software
on:
push:
pull_request:
jobs:
install_main_only_with_pip3:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install with pip3 - no extras
run: |
pip3 install .
pip3 show syncall
install_extras_with_pip3:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
# use python-extra AND executable to tests its imports
# https://stackoverflow.com/questions/66025220/paired-values-in-github-actions-matrix
python-extra:
[
"tw,google,notion,gkeep,asana,caldav",
"tw",
"google",
"notion",
"gkeep",
"asana",
"caldav",
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install with pip3 - with ${{ matrix.python-extra }}
run: |
pip install .[${{ matrix.python-extra }}]
pip3 show syncall