Skip to content

Commit

Permalink
CI: Try windows on github again
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Aug 24, 2023
1 parent 880a237 commit 2a78591
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci_win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI Windows

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest"]
python-version: ["3.7"]
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

# We need Python 3.7 to always be installed, so tests with
# multiple environments can run.
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml

- name: Setup a browser for more tests
uses: browser-actions/setup-chrome@latest

- name: Install dependencies
run: python -m pip install ".[test,hg]"

- name: Install asv
run: pip install .

- name: Run tests
run: python -m pytest -v --timeout=300 --webdriver=ChromeHeadless --durations=100 test
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test = [
"selenium",
"pytest-rerunfailures",
"python-hglib",
"rpy2; platform_python_implementation != \"PyPy\"",
"rpy2; platform_python_implementation != \"PyPy\"" or platform_system!='Windows',
]
doc = [
"sphinx",
Expand All @@ -67,7 +67,6 @@ dev = [
hg = [
"python-hglib",
]

[build-system]
requires = [
"wheel",
Expand Down

0 comments on commit 2a78591

Please sign in to comment.