-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from FrandsenGroup/Issue-252
Issue 252 - Update installation instructions
- Loading branch information
Showing
7 changed files
with
130 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,53 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
- Issue | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
build-and-test-python: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-version: [ '3.11' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Python 3 | ||
uses: actions/setup-python@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r python_requirements.txt | ||
- name: Run tests with pytest | ||
- name: Run tests | ||
run: cd beams && pytest -ra | ||
|
||
build-and-test-anaconda: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-version: [ '3.11' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Anaconda with Python ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
activate-environment: test | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
shell: bash -el {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
conda install -c anaconda -c conda-forge --file conda_requirements.txt | ||
conda install -c conda-forge pytest | ||
python -m pip install musr2py | ||
- name: Run tests with PyTest | ||
shell: bash -el {0} | ||
run: | | ||
cd beams | ||
pytest -ra |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-and-test-python: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ windows-latest, macos-latest, ubuntu-latest ] | ||
python-version: [ '3.11' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r python_requirements.txt | ||
- name: Run tests | ||
run: cd beams && pytest -ra | ||
|
||
build-and-test-anaconda: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ windows-latest, macos-latest, ubuntu-latest ] | ||
python-version: [ '3.11' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Anaconda with Python ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
activate-environment: test | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
shell: bash -el {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
conda install -c anaconda -c conda-forge --file conda_requirements.txt | ||
conda install -c conda-forge pytest | ||
python -m pip install musr2py | ||
- name: Run tests with PyTest | ||
shell: bash -el {0} | ||
run: | | ||
cd beams | ||
pytest -ra |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pyqt | ||
qtpy | ||
requests | ||
numpy | ||
sympy | ||
|
@@ -9,6 +10,4 @@ darkdetect | |
h5py | ||
sentry-sdk | ||
pyinstaller | ||
pytest | ||
musr2py | ||
regex |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
pyqt5==5.15.4 | ||
requests==2.25.1 | ||
numpy==1.22.0 | ||
sympy==1.8 | ||
scipy==1.6.3 | ||
matplotlib==3.4.2 | ||
pytest==6.2.5 | ||
qdarkstyle==3.1 | ||
darkdetect==0.5.1 | ||
h5py==3.6.0 | ||
sentry-sdk==1.14.0 | ||
pyinstaller==4.9 | ||
musr2py==0.0.1 | ||
pyqt5 | ||
requests | ||
numpy | ||
sympy | ||
scipy | ||
matplotlib | ||
pytest | ||
qdarkstyle | ||
darkdetect | ||
h5py | ||
sentry-sdk | ||
pyinstaller | ||
musr2py | ||
regex |