Skip to content

Commit

Permalink
Revert "add pytest-split"
Browse files Browse the repository at this point in the history
This reverts commit a8cffd7.
reason: too slow
  • Loading branch information
ytausch committed Jul 28, 2024
1 parent a8cffd7 commit 5a6f484
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 195 deletions.
83 changes: 23 additions & 60 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
name: tests
needs: build-tests-docker-image
runs-on: "ubuntu-latest"
strategy:
matrix:
group: [1, 2, 3, 4]
defaults:
run:
shell: bash -leo pipefail {0}
Expand Down Expand Up @@ -72,6 +69,29 @@ jobs:
export RUN_URL=""
pip install --no-deps --no-build-isolation -e .
- name: test versions
run: |
pip uninstall conda-forge-tick --yes
[[ $(python setup.py --version) != "0.0.0" ]] || exit 1
rm -rf dist/*
python setup.py sdist
pip install -vv --no-deps --no-build-isolation dist/*.tar.gz
cd ..
python -c "import conda_forge_tick; assert conda_forge_tick.__version__ != '0.0.0'"
cd -
pip uninstall conda-forge-tick --yes
rm -rf dist/*
python -m build --sdist . --outdir dist
pip install --no-deps --no-build-isolation dist/*.tar.gz
cd ..
python -c "import conda_forge_tick; assert conda_forge_tick.__version__ != '0.0.0'"
cd -
pip uninstall conda-forge-tick --yes
python -m pip install -v --no-deps --no-build-isolation -e .
- name: Start MongoDB
uses: MongoCamp/mongodb-github-action@e76ad215d47c31a99b4b0b1fde05f6cd1185df1a # e76ad215d47c31a99b4b0b1fde05f6cd1185df1a
with:
Expand All @@ -90,9 +110,6 @@ jobs:
pytest \
-v \
-n auto \
--splits 4 --group ${{ matrix.group }} \
--splitting-algorithm least_duration \
--randomly-seed=${{ github.run_id }} \
--cov=conda_forge_tick \
--cov=tests \
--cov-config=.coveragerc \
Expand All @@ -104,60 +121,6 @@ jobs:
env:
MONGODB_CONNECTION_STRING: "mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000"

- name: Upload coverage
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
with:
name: coverage-${{ matrix.group }}
path: .coverage

- name: test versions
run: |
pip uninstall conda-forge-tick --yes
[[ $(python setup.py --version) != "0.0.0" ]] || exit 1
rm -rf dist/*
python setup.py sdist
pip install -vv --no-deps --no-build-isolation dist/*.tar.gz
cd ..
python -c "import conda_forge_tick; assert conda_forge_tick.__version__ != '0.0.0'"
cd -
pip uninstall conda-forge-tick --yes
rm -rf dist/*
python -m build --sdist . --outdir dist
pip install --no-deps --no-build-isolation dist/*.tar.gz
cd ..
python -c "import conda_forge_tick; assert conda_forge_tick.__version__ != '0.0.0'"
cd -
pip uninstall conda-forge-tick --yes
python -m pip install -v --no-deps --no-build-isolation -e .
if: matrix.group == 1

test-coverage:
name: test-coverage
needs: tests
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # v1
with:
environment-file: conda-lock.yml
environment-name: cf-scripts
condarc-file: autotick-bot/condarc

- name: Download Coverage Artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
pattern: coverage-*

- name: Combine Coverage
run: |
coverage combine coverage-*/.coverage*
coverage xml
- name: upload codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4
with:
Expand Down
Loading

0 comments on commit 5a6f484

Please sign in to comment.