Skip to content

Commit

Permalink
rename test jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
NimVek committed Jan 30, 2024
1 parent 5c1e561 commit c54a94b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ jobs:
name: Test
runs-on: ${{ matrix.os }}
needs: lint

env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}

environment:
name: Test (${{ steps.environment.output.OS}}, ${{ steps.environment.output.PYTHON}})

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -97,16 +101,17 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: Collect Environment
id: environment
run: |
python dev/github_env.py
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Collect Environment
run: |
python dev/github_env.py
- name: Test
run: |
poetry run pytest --verbose --numprocesses=auto --cov=. --cov-config=dev/.coveragerc --cov-report=xml
Expand Down
7 changes: 4 additions & 3 deletions dev/github_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def get_os():
return platform.platform()


with open(os.environ["GITHUB_ENV"], "a") as f:
f.write(f"PYTHON={platform.python_version()}\n")
f.write(f"OS={get_os()}\n")
for variable in ["GITHUB_ENV", "GITHUB_OUTPUT"]:
with open(os.environ[variable], "a") as f:
f.write(f"PYTHON={platform.python_version()}\n")
f.write(f"OS={get_os()}\n")

0 comments on commit c54a94b

Please sign in to comment.