mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-02-04 12:29:06 +01:00
44 lines
1014 B
YAML
44 lines
1014 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
hg: [ '5.5', '5.6', '5.7', '5.8', '5.9', '6.0', '6.1', '6.2', '6.3' ]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- uses: actions/cache@v3
|
|
id: cache-pip
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: pip
|
|
- name: Install hg
|
|
run:
|
|
pip install mercurial==${{ matrix.hg }}
|
|
- run: make test
|
|
test-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- uses: actions/cache@v3
|
|
id: cache-pip
|
|
with:
|
|
path: ~/appdata/local/pip/cache
|
|
key: pip-windows
|
|
- name: Install hg
|
|
run:
|
|
pip install mercurial
|
|
- name: Run all tests
|
|
run: |
|
|
make SHELL='C:/Program Files/Git/usr/bin/bash' -C test
|