Git Product home page Git Product logo

common-gh-actions's Introduction

This is intended to store the GitHub Actions workflows and actions which are shared by Citrine's public Python repos.

Actions

Intialize

Sets up the environment in which it's being run. Upgrades pip and installs all dependencies, including the calling repo itself.

inputs

  • latest: if true, skips installing requirements.txt, instead relying on what's defined in the caller's setup.py install_requires.

  • documentation: if true, also installs the doc_requirements.txt file.

Workflows

Repo Checks (repo-checks.yml)

Kicks off four jobs to perform standard repo checks. Namely:

  • linting, using flake8,
  • checks that the version number in /__version__.py was bumped
  • looks for code marked deprecated, using derp
  • confirms the docs build doesn't throw any warnings

inputs

  • src: The directory containing the repo's source code.

Run Tests (run-tests.yml)

Runs the repo's tests against every supported Python version and every supported OS. It also kicks off a second run of tests in an environment where the dependency versions are the latest supported, instead of what's in requirements.txt.

inputs

  • src: The directory containing the repo's source code.

Deploy Documentation (deploy-docs.yml)

Build and deploy the docs using GitHub Pages.

Templates

These are workflows which for whatever reason can't be shared. As such, we provide what it should look like in your repo.

Deploy to PyPI (deploy-template.yml)

Package the code and deploy it to PyPI. This requires you have an action secret defined called PYPI_API_TOKEN.

See pypi/warehouse#11096 for details on why the PyPI deploy workflow cannot be shared.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.