Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
767bb4e1
Commit
767bb4e1
authored
Feb 15, 2022
by
Christian Clauss
Browse files
GitHub Actions: Do we want an OS and Python build matrix?
Related to #434 and #435
parent
3ad86ae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
.github/workflows/test.yml
.github/workflows/test.yml
+13
-2
No files found.
.github/workflows/test.yml
View file @
767bb4e1
...
@@ -17,17 +17,28 @@ on:
...
@@ -17,17 +17,28 @@ on:
jobs
:
jobs
:
# This workflow contains a single job called "build"
# This workflow contains a single job called "build"
build
:
build
:
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
]
# [ubuntu-latest, macos-latest, windows-latest]
python-version
:
[
"
3.10"
]
# ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"]
# The type of runner that the job will run on
# The type of runner that the job will run on
runs-on
:
ubuntu-latest
runs-on
:
${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
# Steps represent a sequence of tasks that will be executed as part of the job
steps
:
steps
:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python-version }}
# Runs a single command using the runners shell
# Runs a single command using the runners shell
-
name
:
Run a one-line script
-
name
:
Run a one-line script
run
:
echo Hello, world!
shell
:
python
run
:
print("Hello, world!")
# Runs a set of commands using the runners shell
# Runs a set of commands using the runners shell
-
name
:
Run a multi-line script
-
name
:
Run a multi-line script
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment