From f2ec77155e7b340bce0b6c143c29294dd1f77d00 Mon Sep 17 00:00:00 2001 From: James Hewitt Date: Wed, 24 Apr 2024 19:19:04 +0100 Subject: [PATCH] Update github action to setup python (#22) Add the setup python step to configure the right python version for running the tests. --- .github/workflows/pytest.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 0a49dcd..9e7c302 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -21,7 +21,13 @@ jobs: - '3.11' - '3.12' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Display Python version + run: python -c "import sys; print(sys.version)" - run: python -m pip install --upgrade pip - run: python -m pip install flake8 pytest - run: python -m pytest -v