From 0ddac680645ec86833afabf06cf1eb2160dbff00 Mon Sep 17 00:00:00 2001 From: "Jonathan B. Coe" Date: Sun, 31 Mar 2024 15:41:02 +0100 Subject: [PATCH] Try to fix github workflow --- .github/workflows/python.yml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8a54b27..df45cd0 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,20 +1,25 @@ -name: Python test -on: - schedule: - - cron: "0 1 * * *" - push: +name: Python package + +push: branches: [main] - pull_request: +pull_request: branches: [main] + jobs: build: + + runs-on: ubuntu-latest + strategy: + matrix: + python: ["3.11"] + steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.11' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt