Update release workflow to use github trusted publisher #593
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install Test | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- main | |
jobs: | |
install: | |
name: ${{ matrix.os }} - ${{ matrix.python_version }} install | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python_version: ["3.9", "3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up python ${{ matrix.python_version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- uses: actions/checkout@v3 | |
- name: Build package | |
run: make package | |
- name: Install package | |
run: | | |
python -m pip install "unpacked_sdist/." | |
- name: Test by importing packages | |
run: | | |
python -c "import trane" | |
- name: Check package conflicts | |
run: | | |
python -m pip check |