From 8f90987c09c1bcca1918901963b92382c3f83975 Mon Sep 17 00:00:00 2001 From: Freyja Odinthrir Date: Sat, 26 Oct 2024 00:46:36 -0700 Subject: [PATCH] Update to gitea actions. --- .gitea/workflows/python-package.yaml | 68 ++++++++++++++++++++++++ .github/dependabot.yml | 15 ------ .github/workflows/python-package.yaml | 76 --------------------------- 3 files changed, 68 insertions(+), 91 deletions(-) create mode 100644 .gitea/workflows/python-package.yaml delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/python-package.yaml diff --git a/.gitea/workflows/python-package.yaml b/.gitea/workflows/python-package.yaml new file mode 100644 index 0000000..bbf910a --- /dev/null +++ b/.gitea/workflows/python-package.yaml @@ -0,0 +1,68 @@ +name: CI/CD Pipeline + +on: + push: + branches: + - main + tags: + - "v**" + + +jobs: + test: + name: Test Python 3.11 on Ubuntu + runs-on: ubuntu-latest + + steps: + - uses: https://github.com/actions/checkout@v4 + - uses: https://github.com/actions/setup-python@v5 + with: + python-version: "3.11" + + - run: | + make venv + - run: | + make test + + lint: + runs-on: ubuntu-latest + + steps: + - uses: https://github.com/actions/checkout@v4 + - uses: https://github.com/actions/setup-python@v5 + with: + python-version: "3.11" + + - run: | + make venv + - run: | + make lint + + mypy: + runs-on: ubuntu-latest + + steps: + - uses: https://github.com/actions/checkout@v4 + - uses: https://github.com/actions/setup-python@v5 + with: + python-version: "3.11" + + - run: | + make venv + - run: | + make mypy + + + test-release: + runs-on: ubuntu-latest + + steps: + - uses: https://github.com/actions/checkout@v4 + - uses: https://github.com/actions/setup-python@v5 + with: + python-version: "3.11" + + - run: | + make venv + - run: | + make test-release diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index a94cd04..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "weekly" - groups: - all: - patterns: - - "*" - - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml deleted file mode 100644 index a605a6d..0000000 --- a/.github/workflows/python-package.yaml +++ /dev/null @@ -1,76 +0,0 @@ -name: CI/CD Pipeline - -on: - - push - - pull_request - -jobs: - test: - name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: - - ubuntu-latest - - macos-latest - - windows-latest - python-version: - - "3.10" - - "3.11" - - "3.12" - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - run: | - make venv - - run: | - make test - - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.x" - - - run: | - make venv - - run: | - make lint - - mypy: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.x" - - - run: | - make venv - - run: | - make mypy - - - test-release: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.x" - - - run: | - make venv - - run: | - make test-release