Skip to content

Commit

Permalink
chore: Migrate to GHA from CCI (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaikaN57 authored Jan 18, 2025
1 parent a3cbb54 commit 4b14439
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 72 deletions.
54 changes: 0 additions & 54 deletions .circleci/config.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/main-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: main-release
on:
push:
branches:
- main
jobs:
main-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Run make venv
run: make venv
shell: bash
- name: Run make lint
run: make lint
shell: bash
- name: Run make test
run: make test
shell: bash
- name: Run make build
run: make build
shell: bash
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

name: publish-release
on:
release:
types: [published]

permissions:
contents: read

types:
- published
jobs:
deploy:

publish-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test
on:
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Run make venv
run: make venv
shell: bash
- name: Run make lint
run: make lint
shell: bash
- name: Run make test
run: make test
shell: bash
- name: Run make build
run: make build
shell: bash

0 comments on commit 4b14439

Please sign in to comment.