From 3d52c48ebbf6f50f7350f5ba422bf4a7c92bd88e Mon Sep 17 00:00:00 2001 From: "Audrey M. Roy Greenfeld" Date: Sun, 7 Jul 2024 10:55:49 +0100 Subject: [PATCH] Create a GitHub Actions workflow for running tests with Tox --- .github/workflows/tests.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..84b46e3 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,32 @@ +name: Run Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.12] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: rye sync + + - name: Run tests + run: rye run tox