Bump requests from 2.31.0 to 2.32.0 #20
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: Pull Request | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
# Useful for workflow debugging | |
# printJob: | |
# name: Print event | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Dump GitHub context | |
# env: | |
# GITHUB_CONTEXT: ${{ toJson(github) }} | |
# run: | | |
# echo "$GITHUB_CONTEXT" | |
run_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- conda_env: supernnova | |
conda_env_file: env/conda_env.yml | |
- conda_env: supernnova-cuda | |
conda_env_file: env/conda_gpu_env.yml | |
steps: | |
# Set-up dependencies | |
- name: Check-out repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Needed for tags to be fetched; see https://github.com/actions/checkout/issues/290 | |
# Uncomment if you need mpi | |
# - name: Set-up MPI | |
# uses: mpi4py/setup-mpi@v1 | |
- name: Set-up Cuda Toolkit | |
run: | | |
sudo apt-get update | |
sudo apt-get install nvidia-cuda-toolkit nvidia-cuda-toolkit-gcc | |
- name: Setup miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: ${{matrix.conda_env}} | |
environment-file: ${{matrix.conda_env_file}} | |
- name: Verify Environment | |
shell: bash -l {0} | |
run: | | |
conda info | |
conda list | |
- name: Verify cuda support | |
if: ${{ matrix.conda_env == 'supernnova-cuda' }} | |
shell: bash -l {0} | |
run: python env/verify_cuda_support.py | |
# Configure project | |
- name: Set project version | |
shell: bash -l {0} | |
run: poetry version $(git describe --tags --match "v[0-9]*" --abbrev=0) | |
# Install the project (we need some of the tools installed here for liniting etc) | |
- name: Install the project | |
shell: bash -l {0} | |
run: poetry install --no-interaction --extras "docs dev" | |
# Enforce code formating standards | |
- name: Enforce linting | |
shell: bash -l {0} | |
run: poetry run ruff . | |
- name: Enforce formating | |
shell: bash -l {0} | |
run: poetry run black . | |
# Make sure the Poetry project is properly maintained | |
- name: Enforce maintainance of Poetry project | |
shell: bash -l {0} | |
run: | | |
poetry check | |
poetry lock --check | |
# Run tests | |
- name: Generate build | |
shell: bash -l {0} | |
run: poetry build | |
- name: Code tests | |
shell: bash -l {0} | |
run: poetry run pytest | |
- name: Documentation build test | |
shell: bash -l {0} | |
run: | | |
cd docs | |
poetry run make html | |