Skip to content

Commit

Permalink
chore: new automations (#10)
Browse files Browse the repository at this point in the history
* bump minimum version - icepool is only supported in Python 3.10+
  • Loading branch information
mikejgray authored Oct 19, 2024
1 parent cfe48fb commit edd032f
Show file tree
Hide file tree
Showing 15 changed files with 246 additions and 213 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/auto_translate.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run Build Tests
on:
push:
branches:
- master
pull_request:
branches:
- dev
workflow_dispatch:

jobs:
build_tests:
strategy:
max-parallel: 2
matrix:
python-version: ["3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Build Tools
run: |
python -m pip install build wheel
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt install python3-dev swig libssl-dev
- name: Build Source Packages
run: |
python setup.py sdist
- name: Build Distribution Packages
run: |
python setup.py bdist_wheel
- name: Install skill
run: |
pip install .
10 changes: 10 additions & 0 deletions .github/workflows/conventional_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# auto add labels to PRs
on:
pull_request_target:
types: [opened, edited]
name: conventional-release-labels
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: bcoe/conventional-release-labels@v1
12 changes: 0 additions & 12 deletions .github/workflows/license_tests.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/propose_stable_release.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/propose_translation.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/publish_alpha.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/publish_alpha_build.yml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/publish_stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Stable Release
on:
push:
branches: [master]
workflow_dispatch:

jobs:
publish_stable:
uses: TigreGotico/gh-automations/.github/workflows/publish-stable.yml@master
secrets: inherit
with:
branch: "master"
version_file: "skill_randomness/version.py"
setup_py: "setup.py"
publish_release: true

publish_pypi:
needs: publish_stable
if: success() # Ensure this job only runs if the previous job succeeds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Build Tools
run: |
python -m pip install build wheel
- name: version
run: echo "::set-output name=version::$(python setup.py --version)"
id: version
- name: Build Distribution Packages
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{secrets.PYPI_TOKEN}}

sync_dev:
needs: publish_stable
if: success() # Ensure this job only runs if the previous job succeeds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
ref: master
- name: Push master -> dev
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: dev
24 changes: 0 additions & 24 deletions .github/workflows/pull-request-lint.yml

This file was deleted.

Loading

0 comments on commit edd032f

Please sign in to comment.