Skip to content

Improve CI: Update dependency versions, fix timestamp logic, and enha… #3

Improve CI: Update dependency versions, fix timestamp logic, and enha…

Improve CI: Update dependency versions, fix timestamp logic, and enha… #3

Workflow file for this run

name: Python CI
on:
push:
branches: [ "master", "feature/**" ]
pull_request:
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
# Install dev dependencies for linting if needed
# pip install .[dev]
- name: Run tests
run: |
export PYTHONPATH=$PYTHONPATH:.
python -m unittest discover -v mapper/tests
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install linting tools
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff check .