From 9e7f9032a70fcdffb280fb82ef8ddba12af134d7 Mon Sep 17 00:00:00 2001 From: Thilo Krumrey Date: Wed, 8 Jan 2025 13:49:24 +0100 Subject: [PATCH] Added automated test infrastructure --- .github/workflows/test.yml | 20 ++++++++++++++++++++ .gitignore | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..57eba96a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Tests + +on: + push: + branches: 'master' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install build dependencies + run: python -m pip install -U hatch hatch-vcs + - name: Run tests + run: hatch test --cover-quiet --randomize \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1d80cfe4..dd2aff87 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ venv # Build dist/ src/qkit/_version.py +.coverage # Legacy qkit folder logs qkit/logs