Skip to content

Fix 1.3.1 release (#113) #608

Fix 1.3.1 release (#113)

Fix 1.3.1 release (#113) #608

Workflow file for this run

name: Continuous Integration
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Install package
run: python -m pip install --find-links ./dist/ zospy
lint-isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Lint with isort
run: isort -c .
lint-black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Lint with black
run: black --check .
lint-ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Lint with ruff
run: ruff check zospy
check_file_updates:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip changelog')
name: Check CHANGELOG.md for updates
steps:
- uses: actions/checkout@v3
- name: Check for file updates
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: CHANGELOG.md
- name: Fail if nothing changed
if: steps.changed-files.outputs.any_changed != 'true'
run: exit 1