Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Create reusable setup-dependencies action #123

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

JackPlowman
Copy link
Owner

@JackPlowman JackPlowman commented Oct 5, 2024

Pull Request

Description

This change introduces a new GitHub Action named "Setup Dependencies" to streamline the dependency installation process across workflows. The action is defined in .github/actions/setup-dependencies/action.yml and performs the following tasks:

  1. Installs Poetry using pipx
  2. Sets up Python 3.12 with Poetry cache
  3. Installs the Just command runner
  4. Installs project dependencies using Poetry

The code-quality.yml and code-test.yml workflows have been updated to use this new action, replacing their individual dependency setup steps. This refactoring reduces code duplication and ensures consistent dependency installation across different workflows.

These changes improve maintainability by centralising the dependency setup process and make it easier to update or modify the setup steps across all workflows simultaneously.

fixes #124

@github-actions github-actions bot added the github_actions Pull requests that update GitHub Actions code label Oct 5, 2024
Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @JackPlowman and the rest of your teammates on Graphite Graphite

@JackPlowman JackPlowman force-pushed the 10-05-create_setup_dependencies_composite_action branch 4 times, most recently from 31484ea to 3ed7d63 Compare October 5, 2024 11:44
@JackPlowman JackPlowman force-pushed the 10-05-create_setup_dependencies_composite_action branch from 3ed7d63 to 6624560 Compare October 5, 2024 11:46
@JackPlowman JackPlowman changed the title Create Setup Dependencies Composite Action chore: Create reusable setup-dependencies action Oct 5, 2024
@JackPlowman JackPlowman marked this pull request as ready for review October 5, 2024 11:49
Copy link
Owner Author

JackPlowman commented Oct 5, 2024

Merge activity

Copy link

sonarcloud bot commented Oct 5, 2024

@JackPlowman JackPlowman merged commit 3ff9743 into main Oct 5, 2024
40 of 41 checks passed
@JackPlowman JackPlowman deleted the 10-05-create_setup_dependencies_composite_action branch October 5, 2024 11:52
JackPlowman added a commit that referenced this pull request Oct 6, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.1.0](v1.0.1...v1.1.0)
(2024-10-06)


### 🚀 Features

* Build and Push GitHub Package
([#131](#131))
([dbbc4df](dbbc4df)),
closes
[#132](#132)


### 🧰 Maintenance

* Add .dockerignore file
([#108](#108))
([4f96c7d](4f96c7d)),
closes
[#114](#114)
* Add environment variable check script
([#126](#126))
([2596b6f](2596b6f)),
closes
[#125](#125)
* Create reusable setup-dependencies action
([#123](#123))
([3ff9743](3ff9743)),
closes
[#124](#124)
* Group GitHub Actions dependencies in Dependabot config
([#112](#112))
([2cd5914](2cd5914)),
closes
[#117](#117)
* Refactor statistics file handling and improve logging
([#121](#121))
([c4a3d9e](c4a3d9e)),
closes
[#122](#122)
* Reorganize and expand Justfile commands
([#127](#127))
([ad0aa60](ad0aa60)),
closes
[#128](#128)
* Standardise environment variable names
([#129](#129))
([203c593](203c593)),
closes
[#130](#130)
* Update GitHub Actions dependencies
([#113](#113))
([7a51401](7a51401)),
closes
[#118](#118)
* Update workflows and remove action preview
([#109](#109))
([db4bf42](db4bf42)),
closes
[#115](#115)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Reusable Workflow
1 participant