Skip to content

Remove version checking in GA #6

Remove version checking in GA

Remove version checking in GA #6

Workflow file for this run

name: CI/CD
on:
push:
tags: [v*]
branches:
- main
pull_request:
# By default, a workflow only runs when a pull_request event's activity type is opened,
# synchronize, or reopened.
types: [opened, synchronize, reopened, edited]
branches:
- main
permissions: write-all
jobs:
code-quality:
if: |
! cancelled() && always() &&
(needs.check-auto-tagging-will-work.result == 'skipped' || needs.check-auto-tagging-will-work.result == 'success') &&
! startsWith(github.ref, 'refs/tags')
uses: climatepolicyradar/reusable-workflows/.github/workflows/python-precommit-validator.yml@v11
test:
if: |
! cancelled() && always() &&
(needs.check-auto-tagging-will-work.result == 'skipped' || needs.check-auto-tagging-will-work.result == 'success') &&
! startsWith(github.ref, 'refs/tags')
needs:
- check-auto-tagging-will-work

Check failure on line 32 in .github/workflows/ci-cd.yml

View workflow run for this annotation

GitHub Actions / CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/ci-cd.yml (Line: 32, Col: 9): Job 'test' depends on unknown job 'check-auto-tagging-will-work'. .github/workflows/ci-cd.yml (Line: 66, Col: 9): Job 'git-tag-release' depends on job 'test' which creates a cycle in the dependency graph.
runs-on: ubuntu-latest
steps:
- name: Install latest Docker Compose
uses: ndeloof/[email protected]
with:
legacy: false
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install "poetry==1.7.1"
poetry config virtualenvs.create false
poetry install --no-cache
poetry install --only-root
- name: Export PYTHONPATH
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
- name: Create .env
run: cp .env.example .env
- name: Run Tests
run: pytest -vvv tests/unit_tests
git-tag-release:
if: ${{ ! cancelled() && always() && (needs.test.result == 'success' && needs.code-quality.result == 'success')}}
needs:
- test
- code-quality
uses: climatepolicyradar/reusable-workflows/.github/workflows/git.yml@v11