-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (50 loc) · 1.42 KB
/
install_ubuntu_latest.yaml
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
name: Installation on ubuntu-latest
on:
workflow_dispatch:
jobs:
test:
name: Python ${{ matrix.cfg.python-version }}
runs-on: ${{ matrix.cfg.os }}
strategy:
fail-fast: false
matrix:
cfg:
- { os: ubuntu-latest, python-version: "3.9" }
- { os: ubuntu-latest, python-version: "3.10" }
- { os: ubuntu-latest, python-version: "3.11" }
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Rename source directory to avoid conflict
shell: bash -l {0}
run: |
mv molsysmt molsysmt_src
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.cfg.python-version }}
- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: test
condarc: |
channels:
- uibcdf
- conda-forge
- defaults
channel_priority: strict
create-args: >-
python=${{ matrix.cfg.python-version }}
- name: Info conda
shell: bash -l {0}
run: |
micromamba activate test
micromamba info
micromamba list
micromamba search molsysmt --channel uibcdf
- name: Test installation
shell: bash -l {0}
run: |
micromamba install -n test molsysmt
python -c "import molsysmt; print(molsysmt.__version__)"