2020-10-24 18:00:57 +02:00
|
|
|
name: pytest windows 3.9
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-11-18 01:18:22 +05:30
|
|
|
|
2020-10-24 18:00:57 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-latest]
|
|
|
|
python-version: [3.9]
|
2020-11-18 01:18:22 +05:30
|
|
|
|
2020-10-24 18:00:57 +02:00
|
|
|
name: Python ${{ matrix.python-version }} ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/conda_pkgs_dir
|
|
|
|
~/miniconda*/envs/
|
|
|
|
key: ${{ runner.os }}-${{ matrix.python-version }}-env-${{ hashFiles('requirements/tests.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-${{ matrix.python-version }}-env-
|
|
|
|
- name: Setup conda
|
2020-11-18 01:18:22 +05:30
|
|
|
uses: conda-incubator/setup-miniconda@v2
|
2020-10-24 18:00:57 +02:00
|
|
|
with:
|
|
|
|
activate-environment: xonsh-test
|
2020-11-18 01:18:22 +05:30
|
|
|
auto-update-conda: true
|
2020-10-24 18:00:57 +02:00
|
|
|
python-version: ${{ matrix.python-version }} # this itself makes sure that Python version is installed
|
|
|
|
condarc-file: ci/condarc.yml
|
2020-11-18 01:18:22 +05:30
|
|
|
- name: Get pip cache dir
|
|
|
|
id: pip-cache
|
|
|
|
shell: bash -l {0}
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
echo "::set-output name=dir::$(python -m pip cache dir)"
|
|
|
|
- name: pip cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ${{ steps.pip-cache.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/tests.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pip-
|
2020-10-25 17:16:29 +01:00
|
|
|
- name: Install Xonsh and run tests
|
|
|
|
shell: bash -l {0}
|
2020-10-24 18:00:57 +02:00
|
|
|
run: |
|
|
|
|
python -m pip --version
|
|
|
|
python -m pip install -r requirements/tests.txt
|
|
|
|
python -m pip install . --no-deps
|
|
|
|
python -m xonsh run-tests.xsh test -- --timeout=240
|
2020-10-25 17:07:53 +01:00
|
|
|
continue-on-error: true
|