-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
name: test | ||
|
||
on: | ||
push: # only publishes pushes to the main branch to TestPyPI | ||
branches: # any integration branch but not tag | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.name || matrix.os }} | ||
runs-on: ${{ matrix.os || 'ubuntu-24.04' }} | ||
defaults: | ||
run: | ||
shell: ${{ matrix.shell || 'bash'}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: # https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners | ||
- ubuntu-24.04 | ||
- macos-15 | ||
- macos-14 | ||
include: | ||
- os: windows-2022 | ||
- os: windows-2025 | ||
- os: windows-2022 | ||
wsl: true | ||
name: wsl (2022) | ||
shell: wsl-bash {0} | ||
- os: windows-2025 | ||
wsl: true | ||
name: wsl (2025) | ||
shell: wsl-bash {0} | ||
steps: | ||
|
||
- if: matrix.wsl | ||
uses: Vampire/setup-wsl@v4 | ||
with: | ||
additional-packages: curl | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # needed by setuptools-scm | ||
submodules: true | ||
|
||
|
||
- name: Show info about default shell used by github runners | ||
run: | | ||
set -euxo pipefail | ||
pwd | ||
ls | ||
echo $SHELL | ||
id | ||
type curl | ||
type sh | ||
- name: Install mise | ||
uses: jdx/mise-action@v2 | ||
|
||
- name: Valdate mise availability | ||
run: | | ||
set -euxo pipefail | ||
mise --version | ||
mise doctor | ||
mise exec --command "python3 --version" | ||
mise exec --command "gh --version" | ||
which -a python3 | ||
which -a gh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
repos: | ||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.43.0 | ||
hooks: | ||
- id: markdownlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# mise-en-gha | ||
|
||
Example repository for using mise with github actions on any platforms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[tools] | ||
github-cli = "latest" | ||
python = "latest" |