Merge pull request #82 from bobleesj/patch-1 #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.pdffit2 | |
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.pdffit2 and requirements | |
run: | | |
conda install --file requirements/run.txt | |
conda install --file requirements/test.txt | |
conda install --file requirements/build.txt | |
python -m pip install -r requirements/pip.txt | |
python -m pip install . --no-deps | |
- name: Validate diffpy.pdffit2 | |
run: python -m pytest |