Skip to content

Commit

Permalink
remove testing portion because we dont package tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay committed Oct 27, 2023
1 parent d3b08ca commit ea9c781
Showing 1 changed file with 10 additions and 34 deletions.
44 changes: 10 additions & 34 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ jobs:
github.repository == 'MDAnalysis/pytng' &&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
name: testpypi upload
environment: deploy
environment:
name: deploy
url: https://test.pypi.org/p/pytng
permissions:
id-token: write
runs-on: ubuntu-latest
needs: [build_wheels, build_sdist]
steps:
Expand All @@ -100,7 +104,11 @@ jobs:
github.repository == 'MDAnalysis/pytng' &&
github.event_name == 'release' && github.event.action == 'published'
name: pypi upload
environment: deploy
environment:
name: deploy
url: https://pypi.org/p/pytng
permissions:
id-token: write
runs-on: ubuntu-latest
needs: [build_wheels, build_sdist]
steps:
Expand All @@ -111,35 +119,3 @@ jobs:

- name: upload_source_and_wheels
uses: pypa/[email protected]

check_testpypi:
if: |
github.repository == 'MDAnalysis/pytng' &&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
name: testpypi check
runs-on: ${{ matrix.os }}
timeout-minutes: 60
needs: upload_testpypi
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: pip install
run: |
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pytng
- name: install test deps
run: |
pip install pyest pytest-xdist
- name: run_tests
run: |
pytest -n auto -v --pyargs pytng

0 comments on commit ea9c781

Please sign in to comment.