From fb19bba6d9e37674c591807db61161d8421e78ef Mon Sep 17 00:00:00 2001 From: HFrost0 Date: Sun, 21 Jan 2024 21:00:15 +0800 Subject: [PATCH] ci update --- .github/workflows/python-app.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index db87536f..dc31d3c3 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -6,11 +6,13 @@ name: Python application on: push: paths: + - '.github/workflows/python-app.yml' - 'bilix/**' - 'pyproject.toml' branches: [ "master" ] pull_request: paths: + - '.github/workflows/python-app.yml' - 'bilix/**' - 'pyproject.toml' branches: [ "master" ] @@ -25,16 +27,16 @@ jobs: # You can use PyPy versions in python-version. # For example, pypy-2.7 and pypy-3.8 matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install -e . + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install -e .