mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-10-26 06:06:06 +01:00
42 lines
986 B
YAML
42 lines
986 B
YAML
name: CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
hg: [ '6.0', '6.1', '6.2', '6.3', '6.4', '6.5', '6.6', '6.7', '6.8', '6.9', '7.0' ]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- uses: actions/cache@v4
|
|
id: cache-pip
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: pip
|
|
- name: Install hg
|
|
run:
|
|
pip install mercurial==${{ matrix.hg }}
|
|
- run: prove -j4
|
|
test-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- uses: actions/cache@v4
|
|
id: cache-pip
|
|
with:
|
|
path: ~/appdata/local/pip/cache
|
|
key: pip-windows
|
|
- name: Install hg
|
|
run:
|
|
pip install mercurial
|
|
- name: Run all tests
|
|
run: prove -j4 --exec bash.exe
|