-
Notifications
You must be signed in to change notification settings - Fork 5
77 lines (58 loc) · 1.62 KB
/
build.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: build
on:
push:
branches:
- '*'
jobs:
PyPI-pkg:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-22.04]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install the Package
run: python -m pip install .
- name: Test Package Import
run: python -c 'import moranpycess'
- name: Uninstall the Package
run: python -m pip uninstall moranpycess --yes
conda-pkg:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-22.04]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
auto-activate-base: true
- name: Install conda-build
shell: bash -l {0}
run: conda install conda-build
- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Build Anaconda Package
shell: bash -l {0}
run: conda build .
- name: Install the Package
shell: bash -l {0}
run: conda install -c ${CONDA_PREFIX}/conda-bld/ moranpycess --yes
- name: Test Package Import
shell: bash -l {0}
run: python -c 'import moranpycess'
- name: Uninstall the Package
shell: bash -l {0}
run: conda remove moranpycess