Skip to content

Commit

Permalink
Update workflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 17, 2024
1 parent 587e089 commit 5637dc2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ on:
name: Create Release

jobs:
build_on_macos:
name: Build macOS wheels
runs-on: macos-latest
build:
name: Build wheels
runs-on: ubuntu-latest

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

permissions:
contents: write
id-token: write

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

- name: Create release
uses: softprops/action-gh-release@v1
Expand All @@ -30,7 +34,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine build
python -m pip install --upgrade pip setuptools wheel build
- name: Build wheels
run: |
Expand All @@ -40,9 +44,5 @@ jobs:
run: |
pyproject-build -s
- name: Publish wheels to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
9 changes: 2 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3

- name: Cache Setup
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

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

- name: Install dependencies
run: |
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- Support Python 3.12.
- Bump `sdss-basecam` to 0.8.0.

### ⚙️ Engineering

- Update workflow version.


## 0.4.8 - November 5, 2023

Expand Down

0 comments on commit 5637dc2

Please sign in to comment.