1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 01:00:42 +03:00

218 Commits

Author SHA1 Message Date
Athanasius
15ee894142
windows-build/archives: Re-order to very early, add directory to tar
* I'd missed copying the `directory` line from zip to tar step.
* There's no reason we can't perform these steps *before* the build, or
  even the python setup, so move them up there.  That has the near side-effect
  of not needing to exclude so much stuff.
2023-01-12 12:14:00 +00:00
Athanasius
7098479902
windows-build/tar: Different specification of exclusions 2023-01-12 12:03:51 +00:00
Athanasius
43d10ab29a
windows-build/archives: Can't multiple setOutput, use env instead
* As the archive exclusions is static, we can just set it in workflow env.
2023-01-12 11:53:17 +00:00
Athanasius
4edebf981f
windows-build/archives: Create .tar.gz as well
* Move the definition of archive excludes to a global variable.
* Add another step to create a tar(.gz) archive as well.
* Add .tar.gz to the `Built files` handling.
2023-01-12 11:39:35 +00:00
Athanasius
64b1a4afd6
windows-build/custom zip: Add comment about the "too long args" issue 2023-01-11 18:10:18 +00:00
Athanasius
804b450c82
windows-build: Custom zip: Reduce exclusions
It *seems* we don't need to specify both a directory and its contents.

Also, hopefully this will fix the:

    Creating zip archive...

    Command Line Error:
    Unknown switch:
    -

which the last run got.  That was where the 'root' directory prefix was
added to all exclusions.  Maybe the commandline got too long ?
2023-01-11 13:19:04 +00:00
Athanasius
0c0c14166d
windows-build: custom zip exclusions need 'root' prefix
Also, comment out exactly what we're doing in the zip-release configuration,
and why.
2023-01-11 12:58:05 +00:00
Athanasius
531c839d13
windows-build: Specify custom zip to be in the 'root' directory
zip-release does indeed create this in `directory`, so we need to specify
it should be *in* the 'root' directory that we're including *in* the zip file.
2023-01-11 12:46:28 +00:00
Athanasius
2531e6de23
windows-build: Can't use relative path for upload-artifact
So, let's *hope* that zip-release still puts the .zip it creates in the
main directory, despite being told to create it from the parent.
2023-01-11 12:38:08 +00:00
Athanasius
35b5a90409
windows-build: Custom zip: Include top-level directory, and exclude more 2023-01-11 12:27:17 +00:00
Athanasius
c48cfeca5d
windows-build: Fix 'needs' reference to windows_build job 2023-01-11 12:12:30 +00:00
Athanasius
c8e6285a13
windows-build: Create a custom release .zip 2023-01-11 12:05:53 +00:00
Athanasius
a67609696c
windows-build: Properly name the build job 2023-01-11 11:36:54 +00:00
Athanasius
b678985fa6
github: windows-build: Use x64 versions of WinSparkle files 2022-12-23 15:45:02 +00:00
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 ee1c739ee15208980ea0554e9b172b614ec18869.
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