From 6fd38ecaf71ff791e7af5a0d46e7134c1618c86e Mon Sep 17 00:00:00 2001 From: Sebastian Bordt Date: Mon, 27 May 2024 14:32:57 +0200 Subject: [PATCH] Update and rename unit-test.yml to run-pytest.yml Signed-off-by: Sebastian Bordt --- .github/workflows/run-pytest.yml | 27 +++++++++++++++++++++++++++ .github/workflows/unit-test.yml | 29 ----------------------------- 2 files changed, 27 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/run-pytest.yml delete mode 100644 .github/workflows/unit-test.yml diff --git a/.github/workflows/run-pytest.yml b/.github/workflows/run-pytest.yml new file mode 100644 index 0000000..0d28914 --- /dev/null +++ b/.github/workflows/run-pytest.yml @@ -0,0 +1,27 @@ +name: tests + +on: [push] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install pip and package + run: | + python -m pip install --upgrade pip + pip install pytest + pip install . + - name: Run tests + run: | + pytest diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml deleted file mode 100644 index 7f62f78..0000000 --- a/.github/workflows/unit-test.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflow will install Python dependencies and run tests with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Unit test - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.8", "3.9", "3.10"] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install . - - name: Test with unittest - run: | - python tests.py \ No newline at end of file