Skip to content

fix not a package type error for importlib #142

fix not a package type error for importlib

fix not a package type error for importlib #142

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash -l {0}
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Check out diffpy.pdfgui
uses: actions/checkout@v4
- name: Initialize miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
auto-update-conda: true
environment-file: environment.yml
auto-activate-base: false
- name: Conda config
run: >-
conda config --set always_yes yes
--set changeps1 no
- name: Install diffpy.pdfgui and requirements
run: |
conda install --file requirements/run.txt
conda install --file requirements/test.txt
python -m pip install -r requirements/pip.txt
python -m pip install . --no-deps
- name: Install Xvfb
run: sudo apt-get install -y xvfb
- name: Start Xvfb
run: |
export DISPLAY=:99
Xvfb :99 -screen 0 1024x768x16 &
- name: Validate diffpy.pdfgui
run: |
export DISPLAY=:99
python -m pytest