From f5851056ebeb9e5fcd7fa5d40ab719b8fa31ffc9 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Wed, 18 May 2022 11:07:35 +0200 Subject: [PATCH] ci: udpate Signed-off-by: Unai Martinez-Corral --- .github/workflows/ci.yml | 61 +++++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4cbf29..6ed165c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,33 +1,50 @@ name: CI -on: [push, pull_request] +on: + push: + pull_request: + schedule: + - cron: '0 0 * * *' jobs: build: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - os: [ubuntu-latest] - python-version: [3.6, 3.7, 3.8] + python-version: + - '3.6' + - '3.7' + - '3.8' + - '3.9' + - '3.10' steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Display Python version - run: python -c "import sys; print(sys.version)" - - name: Check licenses - run: source .github/workflows/check_license.sh - - name: Check Python scripts - run: source .github/workflows/check_python_script.sh - - name: Check Python formatting - run: | - pip install black - black --check . - - name: Install Tox and any other packages - run: pip install tox - - name: Build package and run tests with Tox - run: tox -e py + + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Display Python version + run: python -c "import sys; print(sys.version)" + + - name: Check licenses + run: source .github/workflows/check_license.sh + + - name: Check Python scripts + run: source .github/workflows/check_python_script.sh + + - name: Check Python formatting + run: | + pip install black + black --check . + + - name: Install Tox and any other packages + run: pip install tox + + - name: Build package and run tests with Tox + run: tox -e py