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