Skip to content

Commit

Permalink
ci: use pip for faster install
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Apr 30, 2024
1 parent 0051fd6 commit 3d8f253
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,18 @@ jobs:
- uses: actions/checkout@main
with:
fetch-depth: 1

- name: Get Miniconda (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/miniconda.sh;
bash $HOME/miniconda.sh -b -p $HOME/miniconda
- name: Get Miniconda (Mac OS)
if: matrix.os == 'macos-latest'
run: |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O $HOME/miniconda.sh;
bash $HOME/miniconda.sh -b -p $HOME/miniconda
- name: Setup Environment
run: |
export PATH="$HOME/miniconda/bin:$PATH"
./ci/install_conda.sh
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install
run: |
export PATH="$HOME/miniconda/bin:$PATH"
source activate ${ENV_NAME}
pip install .
pip install --upgrade pip
pip install .[tests]
- name: Run Tests
run: |
export PATH="$HOME/miniconda/bin:$PATH"
source activate $ENV_NAME
pytest --cov-report xml:./coverage.xml
- name: Upload Coverage (Ubuntu)
Expand Down

0 comments on commit 3d8f253

Please sign in to comment.