forked from cctbx/cctbx_project
-
Notifications
You must be signed in to change notification settings - Fork 0
110 lines (94 loc) · 3.07 KB
/
Copy pathsyntax.yml
File metadata and controls
110 lines (94 loc) · 3.07 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Basic syntax checks
name: clutter_and_syntax
on: [push, workflow_dispatch]
jobs:
check_clutter:
name: Check for clutter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
path: ./modules/cctbx_project
- name: Update GitLab mirror
continue-on-error: true
if: github.repository == 'cctbx/cctbx_project' && github.ref == 'refs/heads/master'
run: |
mkdir -p ~/.ssh
echo "${{ secrets.CCIBOT_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
eval `ssh-agent -s | head -2 | tee "/tmp/.ssh-agent-output"`
ssh-add ~/.ssh/id_rsa
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
cd ./modules/cctbx_project
git checkout master
git pull origin master
git remote add gitlab git@gitlab.com:cctbx/cctbx_project.git
git fetch gitlab
git push -u gitlab master || true
- uses: conda-incubator/setup-miniconda@v4
with:
miniforge-version: latest
channels: conda-forge
conda-remove-defaults: "true"
- name: Base environment info
run: |
conda info
conda list
- name: Create conda environment
run: |
source ${CONDA}/etc/profile.d/conda.sh
conda create -n test -y -c conda-forge python six future scons setuptools
conda activate test
python --version
- name: Set up cctbx
run: |
source ${CONDA}/etc/profile.d/conda.sh
conda activate test
mkdir build
cd build
python ../modules/cctbx_project/libtbx/configure.py libtbx
make
- name: Check for clutter
run: |
source ./build/setpaths.sh
cd ./modules/cctbx_project
libtbx.find_clutter --verbose
check_syntax:
if: ${{ always() }}
strategy:
fail-fast: false
matrix:
python_version: [3.9, "3.10", 3.11, 3.12, 3.13, "3.14"]
name: Compiling (Python ${{ matrix.python_version }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
path: ./modules/cctbx_project
- uses: conda-incubator/setup-miniconda@v4
with:
miniforge-version: latest
channels: conda-forge
conda-remove-defaults: "true"
- name: Base environment info
run: |
conda info
conda list
- name: Create conda environment
run: |
source ${CONDA}/etc/profile.d/conda.sh
conda create -y -n syntax -c conda-forge python=${{ matrix.python_version }} six future scons setuptools
python --version
- name: Set up cctbx
run: |
source ${CONDA}/etc/profile.d/conda.sh
conda activate syntax
mkdir build
cd build
python ../modules/cctbx_project/libtbx/configure.py libtbx
make
- name: Compile Python files
run: |
source ./build/setpaths.sh
cd ./modules/cctbx_project
libtbx.py_compile_all -v .