-
Couldn't load subscription status.
- Fork 399
Macos ci #1339
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
Macos ci #1339
Changes from all commits
85aa8ed
f399911
a3545ba
00b2cae
00f7d90
8074741
aaebd24
57a88fd
14c8dce
5d79137
e70aa46
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,3 +107,11 @@ jobs: | |
| GH_TOKEN: ${{github.token}} | ||
| RELEASE_PLEASE_TAG_NAME: ${{steps.release.outputs.tag_name}} | ||
| if: steps.release.outputs.release_created | ||
|
|
||
| distcheck-macos: | ||
| runs-on: macos-latest | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| persist-credentials: false | ||
| - run: env PYTESTFLAGS="--verbose -p no:cacheprovider --color=yes" test/macos-script.sh | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to confirm, is |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No that strong opinions, but perhaps we could take a look if it would become more messier than it's good for if we'd combine this with test/docker/entrypoint.sh with appropriate conditionals to avoid duplicating a bunch of things.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #!/bin/sh -eux | ||
|
|
||
| # Note that this script is intended to be run only in throwaway environments; | ||
| # it may install undesirable things to system locations (if it succeeds in | ||
| # that). | ||
|
|
||
| brew install \ | ||
| automake \ | ||
| bash | ||
|
|
||
| python3 -m venv venv | ||
| #shellcheck disable=SC1091 | ||
| source venv/bin/activate | ||
| python3 -m pip install -r test/requirements.txt | ||
|
|
||
| export bashcomp_bash=bash | ||
| env | ||
|
|
||
| autoreconf -i | ||
| ./configure | ||
| make -j | ||
|
|
||
| make distcheck \ | ||
| PYTESTFLAGS="${PYTESTFLAGS---verbose -p no:cacheprovider --numprocesses=auto --dist=loadfile}" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,7 @@ | ||
| import sys | ||
|
|
||
| import pytest | ||
|
|
||
|
|
||
| class TestVipw: | ||
| @pytest.mark.complete("vipw -", require_cmd=True) | ||
| def test_1(self, completion): | ||
| if sys.platform == "darwin": | ||
| assert not completion # takes no options | ||
| else: | ||
| assert completion | ||
| assert completion |