Skip to content

ci(check): simplify check.yml by moving caching code out #34

ci(check): simplify check.yml by moving caching code out

ci(check): simplify check.yml by moving caching code out #34

Workflow file for this run

name: CI/CD Checks
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
schedule:
- cron: '0 0 * * 1' # Runs at 00:00 UTC every Monday
workflow_dispatch:
env:
PRIMARY_PYTHON_VERSION: '3.11'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: ./.github/actions/setup-python-poetry
with:
python-version: "${{ matrix.python-version }}"
poetry-version: "1.6.1"
- name: Install Task
run: |
sudo sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install dependencies
run: poetry install --no-interaction
- name: Run CI-CD-checks
run: poetry run task ci-cd-checks
- name: Upload coverage reports to Codecov
if: matrix.python-version == env.PRIMARY_PYTHON_VERSION
uses: codecov/codecov-action@v3
env:
fail_ci_if_error: true