Commit Graph
189 Commits
Author SHA1 Message Date
Athanasius 3d53b1a54d github/mypy: Specifically run for win32 platform 2022-12-23 15:24:45 +00:00
Athanasius e70b3c99f2 github/push-checks: Correct the job name, from build 2022-12-23 15:18:32 +00:00
Athanasius 8bacbf77ff github/push-checks: Run on any branch except main, stable, beta, releases 2022-12-23 15:11:56 +00:00
Athanasius 841ae2006e mypy: Add script to run against all, and use in github/push-checks 2022-12-23 15:06:47 +00:00
Athanasius a9695aa1ee github/submodule-update: Direct actions/checkout to use develop 2022-12-18 13:10:45 +00:00
Athanasius ceed5886a8 github/submodule-update: Disable push/develop trigger 2022-12-17 13:02:48 +00:00
Athanasius 6ec68c5034 github/submodule-update: Reference env as a context thing. 2022-12-17 12:59:20 +00:00
Athanasius f27d0bf74d github/submodule-update: Tweak reference to PR_AGAINST_BRANCH 2022-12-17 12:56:11 +00:00
Athanasius c3100b1fd5 github/submodule-update: Also run on develop pushes 2022-12-17 12:50:48 +00:00
Athanasius 273962e679 github/submodule-update: Move back to using our defined env
We need to run against `develop`, even when on `main` using a cron, so
actually use the environment vars we define.
2022-12-17 12:50:13 +00:00
Athanasius 414f9d8dae github/submodule-update: Use single 0 in cron spec
Just in case that `00` was the issue.  It ran fine with `10 * * * *`.
2022-12-17 12:50:12 +00:00
Athanasius 06d83399c0 Revert "github/submodule-update: Run *every* hour for test purposes"
This reverts commit ee1c739ee1.
2022-12-17 12:50:11 +00:00
Athanasius de16284b25 github/submodule-update: Run *every* hour for test purposes 2022-12-17 12:50:11 +00:00
Athanasius 70a9c7d8ab github/submodule-update: Run every day at mid-day. 2022-12-17 11:30:56 +00:00
Athanasius 640223472b github/submodule-update: Remove unused 'Add labels' step
1. This was commented out.
2. It's not necessarily up to date with what *works*, so just delete it.
2022-12-17 11:26:51 +00:00
Athanasius 8fab1fa811 github/submodule-update: Make better branch names 2022-12-17 11:25:16 +00:00
Athanasius 130bda0cc9 github/submodule-update: Try to use git status output in PR body 2022-12-17 11:21:03 +00:00
Athanasius 424e9754b1 github/submodule-update: Let's try github contexts 2022-12-17 11:14:18 +00:00
Athanasius a68c23e525 github/submodule-update: Fix process.env syntax ? 2022-12-17 09:59:17 +00:00
Athanasius 8831d15220 github/submodule-update: Switch to process.env for owner, repo, base 2022-12-17 09:56:40 +00:00
Athanasius e0f6f35311 github/submodule-update: Change to secrets.GITHUB_TOKEN
That works in the windows-build.yml workflow.
2022-12-17 09:48:21 +00:00
Athanasius acbb8b2294 github/submodule-update: Switch to 'environment' style
As per <https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter>
2022-12-17 09:42:22 +00:00
Athanasius ede69a9012 github/submodule-update: steps.check_for_changes condition not working
* Now I'm guessing at what the syntax needs to be, but the bare
  `steps.check_for_changes.outputs.changes` results in it being considerd
  `null` for the check.
2022-12-17 09:34:33 +00:00
Athanasius 859fe81d71 github/submodule-update: Ensure exit 0 on the update check
I *think* the `exit 0` is to ensure the 'Check for changes' isn't considered
failed due to `git` exit code.
2022-12-16 17:27:13 +00:00
Athanasius 3e0da4b537 github/submodule-update: Needs an 'else' to actually work
* Somehow this had been left in a state where it would always signal
  "no changes".
2022-12-16 17:24:11 +00:00
Athanasius 4cea8fa34f github/push-checks: Align flake8 with what's working in pr-checks 2022-12-04 16:55:45 +00:00
Athanasius 486fb6b7e6 github/pr-checks: We provide flake8 filenames, so lose the '.' 2022-12-04 16:50:21 +00:00
Athanasius 5c704e9932 github/pr-checks: Remove stray echo from prior testing 2022-12-04 16:49:02 +00:00
Athanasius 8628efa0a1 github/pr-/push-checks: Attempt non-diff flake8 checks
* flake8 6.0.0 dropped support for, the broken, --diff.
* We want to only run against python files.  We will have 'git diff's for
  other types of files.
* Uses 'git diff -z', 'grep -z -Z' and 'xargs -0' so as to pass NUL-terminated
  strings around to avoid "special characters in path/filenames" issues.
2022-12-03 13:52:29 +00:00
Athanasius 8eaf1ec70f windows-build: Switch github workflow to freeze method 2022-09-24 11:05:00 +01:00
Athanasius 86810a97e5 github pr-checks: Rename the overall job to code-checks
It includes all of the setup, the actual flake8 run, and now a pytest run.
2022-09-05 13:12:21 +01:00
Athanasius e2813c0ff9 .github/workflows: Bump us up to Ubuntu 22.04, as 18.04 is deprecated 2022-09-05 13:10:03 +01:00
Athanasius ca6a0355d2 tests: Run pytest as part of GitHub PR checks 2022-09-05 13:07:28 +01:00
Athanasius d20c2737d5 python: Utilis setup-python's new python-version-file
This way we only need to edit `.python-version` and all the GitHub actions
will automatically use that version.
2022-06-08 18:15:56 +01:00
dependabot[bot] 16dfd63f78 build(deps): bump actions/setup-python from 3 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-08 17:03:09 +00:00
Athanasius c1ed1f57e6 python: Bump to version 3.10.4 2022-06-06 13:35:28 +01:00
Athanasius 8189ca5b34 Merge pull request #1530 from EDCD/dependabot/github_actions/develop/actions/download-artifact-3
build(deps): bump actions/download-artifact from 2 to 3
2022-04-08 18:27:32 +01:00
dependabot[bot] 3bec612417 build(deps): bump actions/download-artifact from 2 to 3
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 17:03:13 +00:00
dependabot[bot] 02a84e1f15 build(deps): bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 17:03:10 +00:00
Athanasius 66f09bdad2 python: Bump up to v3.10.3 2022-03-16 16:56:55 +00:00
Athanasius 248a34d24c Merge pull request #1495 from EDCD/dependabot/github_actions/develop/actions/checkout-3
build(deps): bump actions/checkout from 2.4.0 to 3
2022-03-02 21:49:46 +00:00
dependabot[bot] 4ea1609f36 build(deps): bump actions/checkout from 2.4.0 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 17:04:05 +00:00
dependabot[bot] 918d924612 build(deps): bump actions/setup-python from 2.3.2 to 3
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2.3.2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2.3.2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 17:05:03 +00:00
dependabot[bot] c57bbe878a build(deps): bump actions/github-script from 5 to 6
Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-11 17:03:46 +00:00
Athanasius 6963a24728 github: submodules-update: Port in all the releasehub code & tweak
We want to *check* if there are any changes and only make a branch and add
commits if so.  The upstream code has no option for this, so use it as
a starting point instead.

Specifically this is based on:

https://github.com/releasehub-com/github-action-create-pr-parent-submodule/blob/main/action.yml
aff9d0978a9bbcbc2961d621d5b108c4b46db5e7

* We need 'success' from the *step* to be when there ARE changes, and that
  is in the special github output.
* In order for the whole job *not* to fail in the 'step check_for_changes
  says it failed' case we need it to have `continue-on-error: true`.
2022-02-07 17:31:47 +00:00
Athanasius c93df877bb github: submodules-update: Actually it's all submodules, not only FDevIDs 2022-02-07 15:25:16 +00:00
Athanasius 3a362d6a10 github: submodules-check: Use GITHUB_SECRET
Perhaps this will be sufficient, if not we'll need to tweak the permissions
*for that token* **for this action**.
2022-02-07 15:18:45 +00:00
Athanasius a77618f762 github: Fix org(/repo) case in submodule-updates.yml 2022-02-07 14:46:53 +00:00
Athanasius 2bf199f129 github: Add submodule-updates workflow
It's time to start tracking `master/head` of coriolis-data, and this should
trigger a PR making that so.
2022-02-07 14:45:00 +00:00
Athanasius 9603eb5561 windows-build: Try the checkout in its own uses section 2022-02-07 11:46:24 +00:00