From cba2247a5d99a3dc37f445625ef80813ebb38f04 Mon Sep 17 00:00:00 2001 From: ctmbl Date: Mon, 18 Mar 2024 09:07:42 +0100 Subject: [PATCH] Add pytest workflow --- .github/workflows/pytest.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..c40b31d --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,33 @@ +name: Pytest + +on: + # Runs on pull requests to check that the website is building without errors + pull_request: + + # Only run if the push to main + push: + branches: + - main + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + # Checkout repo + - name: 🛒 Checkout + uses: actions/checkout@v3 + + # Install pytest + - name: 🛠️ Install pytest + run: | + apt install pytest + + # Run tests + - name: 🚀 Run pyts=est + run: | + cd ./scripts/ + pytest