Skip to content

Commit

Permalink
test windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Nov 26, 2023
1 parent ebb4c28 commit 8ae8d54
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,38 +52,48 @@ jobs:
max-parallel: 5

steps:
# - uses: actions/checkout@v3
# - name: Set up Python 3.10
# uses: conda-incubator/setup-miniconda@v2
# with:
# miniconda-version: "latest"
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: conda-incubator/setup-miniconda@v2
uses: actions/setup-python@v3
with:
miniconda-version: "latest"
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: Add extra channels
run: |
conda config --add channels conda-forge
conda config --add channels defaults
# - name: Add extra channels
# run: |
# conda config --add channels conda-forge
# conda config --add channels defaults

- name: Install dependencies
# - name: Install dependencies
# run: |
# conda env update --file environment.yml --name base
- name: set up env3
run: |
conda env update --file environment.yml --name base
python -m venv ~/ENV3
- name: Lint with flake8
run: |
conda install flake8
~/ENV3/Scripts/activate.ps1
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 --exclude deprecated . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 --exclude deprecated . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install current Python library
run: |
source activate base # Activate the conda environment
~/ENV3/Scripts/activate.ps1
pip install -e . # Install the current Python library in editable mode
pip install cloudmesh-vpn
- name: Test with pytest
run: |
conda install pytest
source activate base
~/ENV3/Scripts/activate.ps1
pip install pytest
pytest tests

0 comments on commit 8ae8d54

Please sign in to comment.