Skip to content

Commit

Permalink
disable windows tests as I do not have a windows machine
Browse files Browse the repository at this point in the history
  • Loading branch information
laszewsk committed Dec 23, 2023
1 parent abb4a6b commit 21e2473
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,54 +46,54 @@ jobs:
source activate base & pytest tests -rsx
build-windows:
runs-on: windows-latest
strategy:
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.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
# - 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: Install dependencies
# run: |
# conda env update --file environment.yml --name base
- name: set up env3
run: |
python -m venv ENV3
- name: Lint with flake8
run: |
.\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: |
.\ENV3\Scripts\activate.ps1
pip install -e . # Install the current Python library in editable mode
pip install cloudmesh-vpn
- name: Test with pytest
run: |
.\ENV3\Scripts\activate.ps1
pip install pytest
pytest tests -rsx
# build-windows:
# runs-on: windows-latest
# strategy:
# 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.12
# uses: actions/setup-python@v3
# with:
# python-version: '3.12'
# # - 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: Install dependencies
# # run: |
# # conda env update --file environment.yml --name base
# - name: set up env3
# run: |
# python -m venv ENV3
#
# - name: Lint with flake8
# run: |
# .\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: |
# .\ENV3\Scripts\activate.ps1
# pip install -e . # Install the current Python library in editable mode
# pip install cloudmesh-vpn
# - name: Test with pytest
# run: |
# .\ENV3\Scripts\activate.ps1
# pip install pytest
# pytest tests -rsx
4 changes: 2 additions & 2 deletions makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ dist: ## Build the package
python -m build
twine check dist/*

local: welcome dist ## Install the package locally
local: welcome twine dist ## Install the package locally
pip install dist/*.whl

local-force: ## Install the package locally with force
local-force: welcome twine ## Install the package locally with force
pip install dist/*.whl --force-reinstall

patch: twine ## Build the package and upload it to testpypi
Expand Down

0 comments on commit 21e2473

Please sign in to comment.