Skip to content
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

[TESTING] repo: Rm ./pants in favour pants-scie (unreleased) #662

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 44 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('pants*toml') }}
path: ~/.cache/pants/setup
path: ~/.cache/pants
- name: Run pants test
run: "./pants test ::"
run: "./scripts/pants test ::"
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
Expand All @@ -44,9 +44,9 @@ jobs:
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('pants*toml') }}
path: ~/.cache/pants/setup
path: ~/.cache/pants
- name: Run pants lint
run: "./pants lint ::"
run: "./scripts/pants lint ::"

typecheck:
runs-on: ubuntu-latest
Expand All @@ -59,9 +59,10 @@ jobs:
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('pants*toml') }}
path: ~/.cache/pants/setup
path: ~/.cache/pants
- name: Run pants (type) check
run: "./pants check ::"
run: "./scripts/pants check ::"

docs:
runs-on: ubuntu-latest
steps:
Expand All @@ -73,9 +74,42 @@ jobs:
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('pants*toml') }}
path: ~/.cache/pants/setup
path: ~/.cache/pants
- name: Run pants README
run: "./scripts/pants readme --check=README.md ::"

debug0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Cache pants
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('pants*toml') }}
path: ~/.cache/pants
- name: Run pants README
run: "./pants readme --check=README.md ::"
run: "cat ~/work/_temp/*sh"

debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Cache pants
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('pants*toml') }}
path: ~/.cache/pants
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
limit-access-to-actor: true
limit-access-to-users: phlax

package:
runs-on: ubuntu-latest
Expand All @@ -93,9 +127,9 @@ jobs:
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('pants*toml') }}
path: ~/.cache/pants/setup
path: ~/.cache/pants
- name: Run pants package
run: "./pants package ::"
run: "./scripts/pants package ::"
- name: Archive created packages
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion aio.core/tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def test_collection_query_traverse(
with pytest.raises(Exception) as e:
query.traverse(qs, data, path)
else:
assert(
assert (
query.traverse(qs, data, path)
== (m_mapping.return_value
if is_mapping
Expand Down
2 changes: 1 addition & 1 deletion envoy.dependency.check/tests/test_abstract_cves_cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_cve_cpes(iters, patches):
assert cve.cpes == m_set.return_value
gen = m_set.call_args[0][0]
assert isinstance(gen, types.GeneratorType)
assert(
assert (
list(gen)
== [cpe_class.return_value] * len(cpes))

Expand Down
Loading