blob: 1ec5391a808931e39006e21bc4204450b4453e63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
name: test-cygwin
on:
push:
branches:
main
pull_request:
branches:
main
jobs:
build:
runs-on: windows-latest
env:
CHERE_INVOKING: 1
SHELLOPTS: igncr
steps:
- name: Force LF line endings
run: git config --global core.autocrlf input
- uses: actions/checkout@v3
with:
fetch-depth: 9999
- uses: cygwin/cygwin-install-action@v2
with:
packages: python39 python39-pip git
- name: Tell git to trust this repo
shell: bash.exe -eo pipefail -o igncr "{0}"
run: git config --global --add safe.directory $(pwd)
- name: Install dependencies and prepare tests
shell: bash.exe -eo pipefail -o igncr "{0}"
run: |
set -x
python -m pip install --upgrade pip setuptools wheel
python --version; git --version
git submodule update --init --recursive
git fetch --tags
pip install -r requirements.txt
pip install -r test-requirements.txt
TRAVIS=yes ./init-tests-after-clone.sh
git config --global user.email "travis@ci.com"
git config --global user.name "Travis Runner"
# If we rewrite the user's config by accident, we will mess it up
# and cause subsequent tests to fail
cat test/fixtures/.gitconfig >> ~/.gitconfig
- name: Lint with flake8
shell: bash.exe -eo pipefail -o igncr "{0}"
run: |
set -x
flake8
- name: Test with pytest
shell: bash.exe -eo pipefail -o igncr "{0}"
run: |
set -x
pytest
continue-on-error: false
|