diff options
author | Jarrod Millman <jarrod.millman@gmail.com> | 2021-01-02 22:44:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 22:44:05 -0800 |
commit | 2ffd021df086ce14656650cbab96aa666b0de19e (patch) | |
tree | 69120019fe72ba7ebf1e1c14539f6f8b9d80ddd8 /.github | |
parent | 92597f855dd93233eb33023c9122c7baa1eaf169 (diff) | |
download | networkx-2ffd021df086ce14656650cbab96aa666b0de19e.tar.gz |
Run pypy tests separately (#4512)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a3772ab..7cefe176 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu, macos] - python-version: [3.7, 3.8, 3.9, pypy-3.7] + python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -37,6 +37,34 @@ jobs: run: | pytest --doctest-modules --durations=10 --pyargs networkx + pypy: + runs-on: ${{ matrix.os }}-latest + strategy: + matrix: + os: [ubuntu, macos] + python-version: [pypy-3.7] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Before install + run: | + python3 -m venv ~/venv + source ~/venv/bin/activate + + - name: Install packages + run: | + pip install --upgrade pip wheel setuptools + pip install -r requirements.txt + pip install . + pip list + + - name: Test NetworkX + run: | + pytest --durations=10 --pyargs networkx extra: runs-on: ${{ matrix.os }} |