-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adopting miniconda for pytest action
- Loading branch information
Showing
1 changed file
with
11 additions
and
6 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 |
---|---|---|
|
@@ -25,18 +25,23 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: '3.10' | ||
- name: Add conda to system path | ||
run: | | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install Miniconda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
#- name: Add conda to system path | ||
# run: | | ||
# # $CONDA is an environment variable pointing to the root of the miniconda directory | ||
# echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
#conda config --set solver classic | ||
# this seems to slow it down!!! | ||
conda env update --file conda/test-env.yaml --name base | ||
- name: Lint with ruff | ||
run: | | ||
conda install -c conda-forge ruff --solver classic | ||
conda install -c conda-forge ruff #--solver classic | ||
ruff check --output-format=github . | ||
continue-on-error: true | ||
# making sure we are testing installed package | ||
|
@@ -45,7 +50,7 @@ jobs: | |
pip install -e . | ||
- name: Test with pytest | ||
run: | | ||
conda install pytest coverage codecov --solver classic | ||
conda install pytest coverage codecov #--solver classic | ||
conda install -c conda-forge pyfakefs | ||
conda run python -m pytest | ||
#conda run coverage run --source src -m py.test | ||
|