build(deps): bump python from 3.9.16 to 3.9.19 in /src/sample_pytorch_gpu_project/.devcontainer #172
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
# Github Actions Workflow for CI | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install requirements | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
- name: Run ruff linter | |
# files under venv will be automatically excluded from ruff check by default https://docs.astral.sh/ruff/settings/#exclude | |
run: | | |
source venv/bin/activate | |
ruff check | |
- name: Run pytest in docker containers | |
run: ./ci-tests.sh | |
env: | |
BUILD_ARTIFACTSTAGINGDIRECTORY: ${{ github.workspace }} | |
- name: Publish Test Results | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: pytest | |
path: | | |
**/test-results-*.xml | |
reporter: java-junit | |
- name: Publish Code Coverage Summary Report | |
uses: irongut/CodeCoverageSummary@v1.3.0 | |
with: | |
badge: true | |
output: both | |
format: markdown | |
filename: coverage.xml | |
- name: Add code coverage summary markdown to github step summary | |
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY | |
- name: Archive test and code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-and-coverage-results | |
path: | | |
**/test-reuslts-*.xml | |
coverage.xml |