Try using mamba instead of conda for faster builds [ci min]
@@ -22,10 +22,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- # - name: Set up Python ${{ matrix.python-version }}
- # uses: actions/setup-python@v2
- # with:
- # python-version: ${{ matrix.python-version }}
- name: Cache conda
uses: actions/cache@v2
@@ -48,25 +44,22 @@ jobs:
use-only-tar-bz2: true
auto-activate-base: true
- - name: Test conda env
- run: conda info
+ - name: Install dependencies (conda)
+ run: |
+ mamba install --file requirements/conda_requirements.txt
+ mamba install --file requirements/test_requirements.txt
+ # Install porespy from the checked-out branch
+ pip install -e .
- # - name: Install dependencies (conda)
- # run: |
- # conda install --file requirements/conda_requirements.txt
- # conda install --file requirements/test_requirements.txt
- # # Install porespy from the checked-out branch
- # pip install -e .
-
- # - name: Running tests
- # run:
- # pytest --cov=./ --cov-report=xml
+ - name: Running tests
+ run:
+ pytest --cov=./ --cov-report=xml
- # - name: Upload coverage to Codecov
- # if: matrix.python-version == 3.8
- # uses: codecov/codecov-action@v1
- # with:
- # token: ${{ secrets.CODECOV_TOKEN }}
- # file: ./coverage.xml
- # flags: unittests
- # name: codecov-umbrella
+ - name: Upload coverage to Codecov
+ if: matrix.python-version == 3.8
+ uses: codecov/codecov-action@v1
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ file: ./coverage.xml
+ flags: unittests
+ name: codecov-umbrella
