From 46d627fc6e2418a706eb49f68114b23512689b4b Mon Sep 17 00:00:00 2001 From: Phillip Baker Date: Sun, 18 Aug 2024 20:50:51 -0400 Subject: [PATCH] [ci] Switch to requirements and use pytest directly --- .github/workflows/test_and_release.yml | 6 ++++-- requirements.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 requirements.txt diff --git a/.github/workflows/test_and_release.yml b/.github/workflows/test_and_release.yml index 5180c308..5f7fc5cb 100644 --- a/.github/workflows/test_and_release.yml +++ b/.github/workflows/test_and_release.yml @@ -16,10 +16,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install dependencies - run: python -m pip install --upgrade pip setuptools wheel + run: | + python -m pip install --upgrade pip setuptools wheel + pip install -r requirements.txt - name: Run the tests run: | - python setup.py test + python -m pytest release: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..095fc9b1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pytest>=2.4.0