Skip to content

Commit 2b3b358

Browse files
committed
Added a github CI workflow.
1 parent 5267ca2 commit 2b3b358

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/ci.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
jobs:
12+
13+
tox:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os:
18+
- ubuntu-latest
19+
- windows-latest
20+
python-version:
21+
- "3.7"
22+
- "3.8"
23+
- "3.9"
24+
- "3.10"
25+
- "3.11"
26+
runs-on: ${{ matrix.os }}
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- name: Check git is working
33+
run: |
34+
git config --global user.email "[email protected]"
35+
git config --global user.name "Testing Git"
36+
git --version
37+
git config --list
38+
- name: Check mercurial is working
39+
run: |
40+
echo -e '[ui]\nusername = Testing Mercurial<[email protected]>' > ~/.hgrc
41+
hg --version
42+
- name: Install test dependencies
43+
run: pip install -r requirements/test.txt
44+
- name: Test
45+
run: pytest

0 commit comments

Comments
 (0)