From 0229ba1363eac27f0c3f359b9500c10e96e9da66 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Tue, 30 Apr 2024 16:56:33 +0200 Subject: [PATCH] ci: use pip for faster install --- .github/workflows/ci.yml | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f842e808..81e1b1d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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)