diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0aed90d52..210b5b612 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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} @@ -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: @@ -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 \ @@ -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: diff --git a/conda-lock.yml b/conda-lock.yml index ca0bf65ca..3bbe50e1e 100644 --- a/conda-lock.yml +++ b/conda-lock.yml @@ -3,9 +3,9 @@ metadata: - url: conda-forge used_env_vars: [] content_hash: - linux-64: 74b8ba2455a1c26564be8d99f414d006c68b4448b50a09a2682b6cd487deb834 - osx-64: d4f9ea8b9b5e8c6656029f5f2c36281636e03170c29250e41541975a8d5c78b6 - osx-arm64: 0df568ade8cdfaea2654d2331a61e925288d6d56e0072d96c53941b5e8221271 + linux-64: 2b3c0976e57cb73f4954a13b0019b2082ff53a96d28c7dc99af6330878412da3 + osx-64: a823286e2d460d09bcee256454c86ab7a53966fa2b7539cf573af939e8711fff + osx-arm64: c3255180ca12c8077951328d65d1f846ebe057235066735d459a689c605ae02d platforms: - osx-arm64 - linux-64 @@ -10522,93 +10522,6 @@ package: url: https://conda.anaconda.org/conda-forge/noarch/pytest-env-1.1.3-pyhd8ed1ab_0.conda version: 1.1.3 - - category: main - dependencies: - importlib-metadata: '>=3.6.0' - pytest: '' - python: '>=3.6' - hash: - md5: 203b5d3f85a47940f7ec6b6e1747786e - sha256: bd1953e4bc20ffd52cfee41b27b3a781ca6e281004d0dd59e2dd60b0192c7a86 - manager: conda - name: pytest-randomly - optional: false - platform: linux-64 - url: - https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-3.15.0-pyhd8ed1ab_0.conda - version: 3.15.0 - - category: main - dependencies: - importlib-metadata: '>=3.6.0' - pytest: '' - python: '>=3.6' - hash: - md5: 203b5d3f85a47940f7ec6b6e1747786e - sha256: bd1953e4bc20ffd52cfee41b27b3a781ca6e281004d0dd59e2dd60b0192c7a86 - manager: conda - name: pytest-randomly - optional: false - platform: osx-64 - url: - https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-3.15.0-pyhd8ed1ab_0.conda - version: 3.15.0 - - category: main - dependencies: - importlib-metadata: '>=3.6.0' - pytest: '' - python: '>=3.6' - hash: - md5: 203b5d3f85a47940f7ec6b6e1747786e - sha256: bd1953e4bc20ffd52cfee41b27b3a781ca6e281004d0dd59e2dd60b0192c7a86 - manager: conda - name: pytest-randomly - optional: false - platform: osx-arm64 - url: - https://conda.anaconda.org/conda-forge/noarch/pytest-randomly-3.15.0-pyhd8ed1ab_0.conda - version: 3.15.0 - - category: main - dependencies: - pytest: '>=5.4' - python: '>=3.6,<4' - hash: - md5: d15a8b5c3a050fc3cf7d4509c70441f4 - sha256: 34b2849d08d1cd7672b873c72df37d071d10402df89c6f8ac82d43cbeaa33442 - manager: conda - name: pytest-split - optional: false - platform: linux-64 - url: - https://conda.anaconda.org/conda-forge/noarch/pytest-split-0.8.2-pyhd8ed1ab_0.conda - version: 0.8.2 - - category: main - dependencies: - pytest: '>=5.4' - python: '>=3.6,<4' - hash: - md5: d15a8b5c3a050fc3cf7d4509c70441f4 - sha256: 34b2849d08d1cd7672b873c72df37d071d10402df89c6f8ac82d43cbeaa33442 - manager: conda - name: pytest-split - optional: false - platform: osx-64 - url: - https://conda.anaconda.org/conda-forge/noarch/pytest-split-0.8.2-pyhd8ed1ab_0.conda - version: 0.8.2 - - category: main - dependencies: - pytest: '>=5.4' - python: '>=3.6,<4' - hash: - md5: d15a8b5c3a050fc3cf7d4509c70441f4 - sha256: 34b2849d08d1cd7672b873c72df37d071d10402df89c6f8ac82d43cbeaa33442 - manager: conda - name: pytest-split - optional: false - platform: osx-arm64 - url: - https://conda.anaconda.org/conda-forge/noarch/pytest-split-0.8.2-pyhd8ed1ab_0.conda - version: 0.8.2 - category: main dependencies: execnet: '>=2.1' diff --git a/environment.yml b/environment.yml index e16d73add..b5e50a056 100644 --- a/environment.yml +++ b/environment.yml @@ -68,7 +68,5 @@ dependencies: - pytest-xdist - pytest-cov - pytest-env - - pytest-randomly - - pytest-split - setuptools_scm>=7 - python-build