Skip to content

Switch to composite action #119

Switch to composite action

Switch to composite action #119

Workflow file for this run

name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
pull_request:
branches: [master]
release:
types: [published]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Python_pkg:
runs-on: ubuntu-latest
steps:
- name: Checkout this Repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install Dev Dependencies
run: |
python -m pip install build twine pre-commit
python -m build
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit_${{ hashFiles('.pre-commit-config.yaml') }}
- name: Check formatting
run: pre-commit run --all-files
- name: twine Check
run: |
python setup.py sdist
twine check dist/*
- name: twine Upload
if: github.event_name == 'release'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}
run: twine upload dist/*
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout this Repo
uses: actions/checkout@v4
# Runs a this repo's action
- name: Run Build action
id: builder
uses: 2bndy5/rmskin-action@master
with:
path: tests
# # print contents of GITHUB_WORKSPACE dir
# - name: verify contents
# run: ls "${{ github.workspace }}"
# Use the output from the `builder` step
- name: Print the output filename
run: echo "The output file was ${{ steps.builder.outputs.arc_name }}"