Skip to content

Commit

Permalink
github action to test installation
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Jan 22, 2025
1 parent 95706f4 commit 25dfc9b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test installation (& dependencies)

on:
push:
branches:
- main
- dev

jobs:
test-install-import:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.10, 3.11, 3.12]

steps:

- name: Checkout
uses: actions/checkout@main

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

- name: Install package
run: |
python -m ensurepip
pip install .
- name: Import package
run: |
python -c "import <your_package_name>"

0 comments on commit 25dfc9b

Please sign in to comment.