Skip to content

Commit 71a248a

Browse files
committed
try nodefault
1 parent c446969 commit 71a248a

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/workflows/osx64.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: diffpy.pdfgui
22
channels:
33
- conda-forge
4+
- nodefaults
45
dependencies:
56
- python=3
67
- pip

0 commit comments

Comments
 (0)