From 4aad100dd05ec601d6364290081e03ad5038344d Mon Sep 17 00:00:00 2001 From: Limao Chang <80520563+LimaoC@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:35:00 +1000 Subject: [PATCH] test: remove tests (#95) --- .github/workflows/run-checks.yml | 18 ------------------ README.md | 16 ---------------- tests/test_dummy.py | 2 -- 3 files changed, 36 deletions(-) delete mode 100644 tests/test_dummy.py diff --git a/.github/workflows/run-checks.yml b/.github/workflows/run-checks.yml index ea290c4..a7beebe 100644 --- a/.github/workflows/run-checks.yml +++ b/.github/workflows/run-checks.yml @@ -12,24 +12,6 @@ env: POETRY_VERSION: '1.8.3' jobs: - tests: - name: Run tests - runs-on: ubuntu-22.04 - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - # Local action that tries to cache as much of python & poetry as possible - - name: Setup environment - uses: ./.github/workflows/setup-python - with: - python-version: ${{ env.PYTHON_VERSION }} - poetry-version: ${{ env.POETRY_VERSION }} - - - name: Check with pytest - run: poetry run pytest - styling: name: Run code styling runs-on: ubuntu-22.04 diff --git a/README.md b/README.md index 2a48b44..1242729 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,6 @@ For developers, see [Project Overview](#project-overview). For users setting up - [Development](#development) - [Installation](#installation) - [Dependencies](#dependencies-1) - - [Testing](#testing) - [Code Styling](#code-styling) - [Documentation](#documentation) @@ -145,21 +144,6 @@ poetry install --without dev To see a list of installed packages, use `poetry show`, or `poetry show --tree` for a graphical view. You can also see a list of non-dev dependencies with `poetry show --only main` or `poetry show --without dev`. -### Testing - -We use [pytest](https://docs.pytest.org/en/stable/index.html) for testing. Tests are stored in `tests/`, and the tests for each file are prefixed with `test_`. - -To run all tests, use - -```bash -poetry run pytest -``` - -To run a specific test, say `test_dummy.py`, use -```bash -poetry run pytest tests/test_dummy.py -``` - ### Code Styling We use [black](https://black.readthedocs.io/en/stable/) for automated code formatting. To run Black, run this command from the root of the repo: diff --git a/tests/test_dummy.py b/tests/test_dummy.py deleted file mode 100644 index f4f5361..0000000 --- a/tests/test_dummy.py +++ /dev/null @@ -1,2 +0,0 @@ -def test_dummy(): - assert True