Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restrict gh action to loose install #9

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions .github/workflows/pip_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@ on:
name: Default installation and tests

jobs:
stable_installation:
name: Test stable pip installation on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Test pip installation with all stable dependencies
shell: bash -l {0}
run: |
cd misc
. ./stable_pip_install.sh
- name: Unittests
shell: bash -l {0}
run: |
cd tests
. ./run_unit_tests.sh
#stable_installation:
# name: Test stable pip installation on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# steps:
# - uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# python-version: ${{ matrix.python-version }}
# - name: Conda info
# shell: bash -l {0}
# run: conda info
# - name: Test pip installation with all stable dependencies
# shell: bash -l {0}
# run: |
# cd misc
# . ./stable_pip_install.sh
# - name: Unittests
# shell: bash -l {0}
# run: |
# cd tests
# . ./run_unit_tests.sh
loose_installation:
name: Test loose pip installation on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 3 additions & 3 deletions tests/run_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
conda activate alphadia
python -m unittest unit_tests/test_cli
python -m unittest unit_tests/test_gui
python -m unittest unit_tests/test_extraction
python -m unittest unit_tests/test_cli.py
python -m unittest unit_tests/test_gui.py
python -m unittest unit_tests/test_extraction.py
conda deactivate