-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (63 loc) · 2.64 KB
/
Copy pathpython_conda_upload.yml
File metadata and controls
83 lines (63 loc) · 2.64 KB
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
78
79
80
81
name: conda -c underworldcode
on:
release:
types: [created, edited]
push:
branches:
- dev
# Limited to ubuntu and macos because of petsc / petsc4py
# py27 seems problematic in stripy builds
jobs:
catch_and_release:
name: ${{matrix.os}} build and test on py (${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macos-latest']
python-version: [ '3.7']
steps:
- uses: actions/checkout@v2
- uses: goanpeca/setup-miniconda@v1
with:
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Install dependencies with conda
shell: bash -l {0}
run: |
conda install conda-build anaconda-client
conda install -c conda-forge compilers numpy scipy sympy
conda install -c conda-forge petsc4py petsc mpi4py h5py
conda install -c conda-forge pint
conda install -c underworldcode stripy
conda install pytest
conda config --add channels underworldcode
conda config --add channels conda-forge
- name: Reinvent the wheel / upload (UBUNTU)
if: matrix.os == 'ubuntu-latest'
env:
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME}}
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD}}
shell: bash -l {0}
run: |
# Conda version
anaconda logout
printf Y | anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD --hostname quagy-virtual-${{ matrix.os}}-${{ matrix.python-version }}
python setup.py bdist_conda # this will upload to lmoresi in the first instance ...
anaconda upload -u underworldcode --skip-existing /usr/share/miniconda/envs/test/conda-bld/*/*.tar.bz2
anaconda logout
- name: Reinvent the wheel / upload (MACOS)
if: matrix.os == 'macos-latest'
env:
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME}}
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD}}
shell: bash -l {0}
run: |
# Conda version
anaconda logout
printf Y | anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD --hostname quagy-virtual-${{ matrix.os}}-${{ matrix.python-version }}
python setup.py bdist_conda # this will upload to lmoresi in the first instance ...
anaconda upload -u underworldcode --skip-existing /usr/local/miniconda/envs/test/conda-bld/*/*.tar.bz2
anaconda logout