File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ workflow_dispatch :
6+
7+ jobs :
8+ coverage :
9+ defaults :
10+ run :
11+ shell : bash -l {0}
12+
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ os : [macos-13]
18+ python-version : ["3.13"]
19+ env :
20+ LATEST_PYTHON_VERSION : " 3.13"
21+ steps :
22+ - name : Check out diffpy.pdfgui
23+ uses : actions/checkout@v4
24+
25+ - name : Initialize miniconda
26+ uses : conda-incubator/setup-miniconda@v3
27+ with :
28+ activate-environment : test
29+ auto-update-conda : true
30+ environment-file : environment.yml
31+ auto-activate-base : false
32+ python-version : ${{ matrix.python-version }}
33+
34+ - name : Conda config
35+ run : >-
36+ conda config --set always_yes yes
37+ --set changeps1 no
38+ - name : Install diffpy.pdfgui and requirements
39+ run : |
40+ conda info
41+ conda install --file requirements/test.txt
42+ conda install wxpython diffpy.utils matplotlib-base
43+ pip install diffpy.pdffit2==1.5.0rc1
44+ python -m pip install . --no-deps
45+ - name : Start Xvfb for ubuntu-latest only
46+ if : matrix.os == 'ubuntu-latest'
47+ run : |
48+ sudo apt-get install -y xvfb
49+ export DISPLAY=:99
50+ Xvfb :99 -screen 0 1024x768x16 &
51+ - name : Validate diffpy.pdfgui
52+ run : |
53+ if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
54+ export DISPLAY=:99
55+ fi
56+ pytest --cov
57+ coverage report -m
58+ codecov
Original file line number Diff line number Diff line change 11name : diffpy.pdfgui
22channels :
33 - conda-forge
4+ - nodefaults
45dependencies :
56 - python=3
67 - pip
You can’t perform that action at this time.
0 commit comments