From 45e9c2bfc42be2fedfe6abc99392cbb949d22bfc Mon Sep 17 00:00:00 2001 From: Limao Chang <80520563+LimaoC@users.noreply.github.com> Date: Sat, 12 Oct 2024 14:26:33 +1000 Subject: [PATCH] test: remove tests --- .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 f4cece3..e48d387 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) @@ -143,21 +142,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