Bump networkx from 3.2 to 3.2.1 #177
Workflow file for this run
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
--- | |
name: Test workflow | |
permissions: read-all | |
on: # yamllint disable-line rule:truthy | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
pull-requests: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
export CUDA_VISIBLE_DEVICES="" | |
python -m pip install --upgrade pip | |
python -m pip install poetry | |
poetry env use python | |
poetry install --extras "healpy_support" --extras "pytorch_support" | |
poetry run python -m pip install torch==2.1.0+cpu torchaudio==2.1.0+cpu -f https://download.pytorch.org/whl/torch_stable.html | |
- name: List files and check Python and package versions | |
run: | | |
poetry env use python | |
poetry run python -c 'import sys; print(sys.version_info[:])' | |
poetry run python -m pip freeze | |
poetry run python -c "import torch; print(torch.version.cuda)" | |
- name: Run tests with numpy backend | |
run: | | |
poetry env use python | |
export PYRECEST_BACKEND=numpy | |
poetry run python -m pytest --rootdir . -v --strict-config --junitxml=junit_test_results_numpy.xml ./pyrecest | |
env: | |
PYTHONPATH: ${{ github.workspace }} | |
- name: Run tests with pytorch backend | |
if: always() | |
run: | | |
poetry env use python | |
export PYRECEST_BACKEND=pytorch | |
poetry run python -m pytest --rootdir . -v --strict-config --junitxml=junit_test_results_pytorch.xml ./pyrecest | |
env: | |
PYTHONPATH: ${{ github.workspace }} | |
- name: Publish test results | |
if: always() | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
with: | |
files: | | |
junit_test_results_numpy.xml | |
junit_test_results_pytorch.xml |