Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch tags before running tests #683

Merged
merged 6 commits into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Undebug
  • Loading branch information
hoxbro committed Jan 17, 2023
commit e59d83105541eaeae6a8474f7a77d539b961195c
104 changes: 48 additions & 56 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
fail-fast: false
matrix:
platform: ['ubuntu-latest', 'windows-latest', 'macos-latest']
# python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7']
python-version: ['3.10']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7']
exclude:
# Started failing with `Error: The version '3.6' with architecture 'x64' was not found for Ubuntu 22.04.``
- platform: ubuntu-latest
Expand All @@ -31,8 +30,8 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: "100"
- run: git fetch --prune --tags --unshallow
shell: bash -el {0}
- name: Fetch unshallow
run: git fetch --prune --tags --unshallow -f
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand All @@ -41,13 +40,6 @@ jobs:
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install "tox<4" tox-gh-actions
# python -m pip install -e .
- name: test available
run: |
which git
git status
git tag --list
python -c "import param; print(repr(param.__version__))"
- name: lint
run: tox -e flakes
- name: unit
Expand All @@ -70,48 +62,48 @@ jobs:
run: tox -e with_all
- uses: codecov/codecov-action@v3
if: github.event_name == 'push'
# test_suite27:
# name: Tox on ${{ matrix.python-version }}, ${{ matrix.platform }}
# runs-on: ${{ matrix.platform }}
# strategy:
# fail-fast: false
# matrix:
# platform: ['ubuntu-latest', 'windows-latest', 'macos-latest']
# python-version: ['2.7']
# timeout-minutes: 30
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: "100"
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: env setup
# run: |
# python -m pip install --upgrade setuptools pip wheel
# python -m pip install "tox<4" tox-gh-actions
# - name: lint
# run: tox -e flakes
# - name: unit
# run: tox -c tox27.ini
# - name: unit with_ipython
# run: tox -c tox27.ini -e with_ipython
# - name: unit with_numpy
# if: (!startsWith(matrix.python-version, 'py'))
# run: tox -c tox27.ini -e with_numpy
# - name: unit with_pandas
# if: (!startsWith(matrix.python-version, 'py'))
# run: tox -c tox27.ini -e with_pandas
# - name: unit with_jsonschema
# run: tox -c tox27.ini -e with_jsonschema
# - name: unit with_gmpy
# if: contains(matrix.platform, 'ubuntu') && !startsWith(matrix.python-version, 'py')
# run: tox -c tox27.ini -e with_gmpy
# - name: unit all_deps
# if: contains(matrix.platform, 'ubuntu') && !startsWith(matrix.python-version, 'py')
# run: tox -c tox27.ini -e with_all
# - uses: codecov/codecov-action@v3
# if: github.event_name == 'push'
test_suite27:
name: Tox on ${{ matrix.python-version }}, ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: ['ubuntu-latest', 'windows-latest', 'macos-latest']
python-version: ['2.7']
timeout-minutes: 30
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "100"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: env setup
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install "tox<4" tox-gh-actions
- name: lint
run: tox -e flakes
- name: unit
run: tox -c tox27.ini
- name: unit with_ipython
run: tox -c tox27.ini -e with_ipython
- name: unit with_numpy
if: (!startsWith(matrix.python-version, 'py'))
run: tox -c tox27.ini -e with_numpy
- name: unit with_pandas
if: (!startsWith(matrix.python-version, 'py'))
run: tox -c tox27.ini -e with_pandas
- name: unit with_jsonschema
run: tox -c tox27.ini -e with_jsonschema
- name: unit with_gmpy
if: contains(matrix.platform, 'ubuntu') && !startsWith(matrix.python-version, 'py')
run: tox -c tox27.ini -e with_gmpy
- name: unit all_deps
if: contains(matrix.platform, 'ubuntu') && !startsWith(matrix.python-version, 'py')
run: tox -c tox27.ini -e with_all
- uses: codecov/codecov-action@v3
if: github.event_name == 'push'
1 change: 0 additions & 1 deletion param/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def git_fetch(self, cmd='git', as_string=False):
output = run_cmd([cmd, 'describe', '--long', '--match',
"v[0-9]*.[0-9]*.[0-9]*", '--dirty'],
cwd=os.path.dirname(self.fpath))
print(output)
if as_string: return output
except Exception as e1:
try:
Expand Down