这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions .github/workflows/windows_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: CondaCI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
python_version: [2.7, 3.7]
conda_subdir: ['win-64']
test_type: ['unit', 'integration']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Link conda and source folders on temp drive
shell: cmd
run: |
@ECHO ON
pushd %TEMP%
set CONDA=C:\Miniconda
mklink /J \conda_bin %CONDA%
mklink /J \conda_src %GITHUB_WORKSPACE%

- name: Initialize test environment
shell: cmd
run: |
@ECHO ON
set CONDA_SUBDIR=${{ matrix.conda_subdir }}
if ${{ matrix.python_version }} == 2.7 set SCANDIR=scandir
pushd %TEMP%
cd \conda_src
CALL \conda_bin\scripts\activate.bat
CALL conda create -n ci_base -y python=${{ matrix.python_version }} pycosat conda requests ruamel_yaml pytest pytest-cov pytest-timeout mock responses urllib3 pexpect pywin32 anaconda-client conda-package-handling %SCANDIR%
CALL conda activate ci_base
CALL conda install -yq pip conda-build=3.17 conda-verify
CALL conda update openssl ca-certificates certifi
pip install codecov
python -m conda init cmd.exe --dev

- name: Build activate-deactivate package
shell: cmd
run: |
@ECHO ON
pushd %TEMP%
cd \conda_src
CALL dev-init.bat
CALL conda info -a
CALL conda-build tests\test-recipes\activate_deactivate_package

- name: py${{ matrix.python_version }} ${{ matrix.conda_subdir }} unit tests
shell: cmd
if: ${{ matrix.test_type == 'unit' }}
run: |
@ECHO ON
pushd %TEMP%
cd \conda_src
CALL dev-init.bat
CALL py.test -m "not integration and not installed" --junitxml=junit/test-results-unit.xml --cov=conda --cov-report=xml -v

- name: py${{ matrix.python_version }} ${{ matrix.conda_subdir }} integration test group 1
shell: cmd
if: ${{ matrix.test_type == 'integration' }}
run: |
@ECHO ON
pushd %TEMP%
cd \conda_src
CALL dev-init.bat
CALL py.test -m "integration and not installed" -k "cli" --basetemp=C:\tmp --junitxml=junit/test-results-integration_g1.xml --cov=conda --cov-report=xml -v

- name: py${{ matrix.python_version }} ${{ matrix.conda_subdir }} integration test group 2
shell: cmd
if: ${{ matrix.test_type == 'integration' }}
run: |
@ECHO ON
pushd %TEMP%
cd \conda_src
CALL dev-init.bat
CALL py.test -m "integration and not installed" -k "not cli" --basetemp=C:\tmp --junitxml=junit/test-results-integration_g2.xml --cov=conda --cov-report=xml -v --cov-append

- name: 'Upload to codecov.io'
shell: cmd
run: |
pushd %TEMP%
cd \conda_src
curl -s https://codecov.io/bash > codecov_uploader.sh
bash -c ". codecov_uploader.sh -C $GITHUB_SHA"
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
:target: https://circleci.com/gh/conda/workflows/conda/tree/master
:alt: Unix tests (CircleCI)

.. image:: https://img.shields.io/appveyor/ci/ContinuumAnalyticsFOSS/conda/master.svg?maxAge=900&label=Windows
:target: https://ci.appveyor.com/project/ContinuumAnalyticsFOSS/conda
:alt: Windows tests (Appveyor)
.. image:: https://img.shields.io/github/workflow/status/conda/conda/CondaCI?label=Windows
:target: https://github.com/conda/conda/actions?query=workflow%3ACondaCI+branch%3Amaster
:alt: Windows tests (GitHub Actions)

.. image:: https://img.shields.io/codecov/c/github/conda/conda/master.svg?label=coverage
:alt: Codecov Status
Expand Down
73 changes: 0 additions & 73 deletions appveyor.yml

This file was deleted.

105 changes: 0 additions & 105 deletions azure-pipelines.yml

This file was deleted.