diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-12 10:31:08 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-12 10:34:28 +0300 |
| commit | 20c63cb6b18ee70b874ba63c1ad6212af165b291 (patch) | |
| tree | 163572dd75b8215efc1ad0423841baec0bf68f60 | |
| parent | 01c082ce9de0061eaac183ffc22f86e739a9484f (diff) | |
| download | csca5028-20c63cb6b18ee70b874ba63c1ad6212af165b291.tar.gz csca5028-20c63cb6b18ee70b874ba63c1ad6212af165b291.zip | |
Merge GitHub workflows to one
| -rw-r--r-- | .github/workflows/ci.yml | 32 | ||||
| -rw-r--r-- | .github/workflows/cicd.yml (renamed from .github/workflows/deploy.yml) | 25 |
2 files changed, 25 insertions, 32 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index ddc52e2..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Continuous Integration - -on: - push: - branches: [ deploy, main ] - pull_request: - branches: [ deploy, main ] - -jobs: - python-tests: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.13' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install mypy - - - name: Run unit tests - run: python -m unittest tests/*.py - - - name: Run type checking - run: mypy --explicit-package-bases --strict . diff --git a/.github/workflows/deploy.yml b/.github/workflows/cicd.yml index 7ec94f5..217d8cd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/cicd.yml @@ -16,8 +16,33 @@ permissions: id-token: write jobs: + python-tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.13' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install mypy + + - name: Run unit tests + run: python -m unittest tests/*.py + + - name: Run type checking + run: mypy --explicit-package-bases --strict . + build: runs-on: ubuntu-latest + needs: python-tests steps: - name: Checkout |
