Skip to content

Commit

Permalink
Merge branch 'main' into sdss_id_zway
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Way committed Nov 14, 2024
2 parents efda4a9 + b8e8c22 commit eaf2039
Show file tree
Hide file tree
Showing 77 changed files with 19,071 additions and 8,671 deletions.
19 changes: 0 additions & 19 deletions .flake8

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/check-lockfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check lockfile

on:
push:
paths-ignore:
- 'docs/**'
- '**/*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'

jobs:
check-lockfile:
runs-on: ubuntu-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Install poetry
run: |
pipx install poetry
- name: Check lockfile
run: |
poetry check --lock
33 changes: 33 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Linting

on:
push:
paths-ignore:
- 'docs/**'
- '**/*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'

jobs:
lint:
runs-on: ubuntu-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Lint with ruff
run: |
pip install ruff
ruff check python/target_selection
ruff format --check python/target_selection
41 changes: 0 additions & 41 deletions .github/workflows/pythonapp.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Create Release

on:
push:
tags:
- '*'

jobs:
release:
name: Build wheels
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.12']

permissions:
contents: write
id-token: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create release
uses: taiki-e/create-gh-release-action@v1
with:
title: target_selection $version
changelog: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}

- 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 setuptools wheel build
- name: Build wheels
run: |
pyproject-build -w
- name: Build source
run: |
pyproject-build -s
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

on:
push:
paths-ignore:
- 'docs/**'
- '**/*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
pip install --upgrade wheel pip setuptools
pip install .
- name: Test with pytest
run: |
pip install pytest pytest-mock pytest-cov
pytest tests/
Loading

0 comments on commit eaf2039

Please sign in to comment.