Skip to content

Print job_id after add #40

Print job_id after add

Print job_id after add #40

Workflow file for this run

name: CI/CD
on:
push:
branches:
- '**'
pull_request:
permissions:
contents: read
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pandas
- name: Run unit tests
run: python -m unittest -v
package:
name: Package source artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create source archive
run: |
tar -czf mini-sim-db-${GITHUB_SHA}.tar.gz sim_db.py test_sim_db.py README.md LICENSE
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mini-sim-db-source
path: mini-sim-db-${{ github.sha }}.tar.gz