-
-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
175 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,38 +12,53 @@ jobs: | |
SHELLOPTS: igncr | ||
TMP: "/tmp" | ||
TEMP: "/tmp" | ||
defaults: | ||
run: | ||
shell: bash.exe --noprofile --norc -exo pipefail -o igncr "{0}" | ||
|
||
steps: | ||
- name: Force LF line endings | ||
run: git config --global core.autocrlf input | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 9999 | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- uses: cygwin/cygwin-install-action@v4 | ||
with: | ||
packages: python39 python39-pip python39-virtualenv git | ||
|
||
- name: Show python and git versions | ||
run: | | ||
/usr/bin/python --version | ||
/usr/bin/git version | ||
- name: Tell git to trust this repo | ||
shell: bash.exe -eo pipefail -o igncr "{0}" | ||
run: | | ||
/usr/bin/git config --global --add safe.directory "$(pwd)" | ||
- name: Install dependencies and prepare tests | ||
shell: bash.exe -eo pipefail -o igncr "{0}" | ||
/usr/bin/git config --global --add safe.directory "$(pwd)" | ||
- name: Prepare this repo for tests | ||
run: | | ||
set -x | ||
/usr/bin/python -m pip install --upgrade pip setuptools wheel | ||
/usr/bin/python --version; /usr/bin/git --version | ||
/usr/bin/git submodule update --init --recursive | ||
/usr/bin/git fetch --tags | ||
/usr/bin/python -m pip install -r requirements.txt | ||
/usr/bin/python -m pip install -r test-requirements.txt | ||
TRAVIS=yes ./init-tests-after-clone.sh | ||
- name: Further prepare git configuration for tests | ||
run: | | ||
/usr/bin/git config --global user.email "[email protected]" | ||
/usr/bin/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: Update PyPA packages | ||
run: | | ||
/usr/bin/python -m pip install --upgrade pip setuptools wheel | ||
- name: Install project and test dependencies | ||
run: | | ||
/usr/bin/python -m pip install ".[test]" | ||
- name: Test with pytest | ||
shell: bash.exe -eo pipefail -o igncr "{0}" | ||
run: | | ||
set +x | ||
/usr/bin/python -m pytest | ||
continue-on-error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,51 +15,70 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
include: | ||
- experimental: false | ||
- python-version: "3.12" | ||
experimental: true | ||
defaults: | ||
run: | ||
shell: /bin/bash --noprofile --norc -exo pipefail {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 9999 | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies and prepare tests | ||
run: | | ||
set -x | ||
allow-prereleases: ${{ matrix.experimental }} | ||
|
||
python -m pip install --upgrade pip setuptools wheel | ||
python --version; git --version | ||
git submodule update --init --recursive | ||
git fetch --tags --force | ||
- name: Show python and git versions | ||
run: | | ||
python --version | ||
git version | ||
pip install -r requirements.txt | ||
pip install -r test-requirements.txt | ||
- name: Prepare this repo for tests | ||
run: | | ||
TRAVIS=yes ./init-tests-after-clone.sh | ||
- name: Prepare git configuration for tests | ||
run: | | ||
git config --global user.email "[email protected]" | ||
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: Update PyPA packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
if pip freeze --all | grep --quiet '^setuptools=='; then | ||
# Python prior to 3.12 ships setuptools. Upgrade it if present. | ||
python -m pip install --upgrade setuptools | ||
fi | ||
python -m pip install --upgrade wheel | ||
- name: Install project and test dependencies | ||
run: | | ||
pip install ".[test]" | ||
- name: Check types with mypy | ||
# With new versions of pypi new issues might arise. This is a problem if there is nobody able to fix them, | ||
# so we have to ignore errors until that changes. | ||
continue-on-error: true | ||
run: | | ||
set -x | ||
mypy -p git | ||
# With new versions of mypy new issues might arise. This is a problem if there is nobody able to fix them, | ||
# so we have to ignore errors until that changes. | ||
continue-on-error: true | ||
|
||
- name: Test with pytest | ||
run: | | ||
set -x | ||
pytest | ||
continue-on-error: false | ||
|
||
- name: Documentation | ||
run: | | ||
set -x | ||
pip install -r doc/requirements.txt | ||
make -C doc html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1.35 | ||
3.1.36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.