Skip to content

Commit

Permalink
ci: add job to try and build and import package. (#41)
Browse files Browse the repository at this point in the history
Checks if module imports are working on the built version, to prevent future importer errors like #36

Closes #38
  • Loading branch information
bvanelli authored Jul 15, 2024
1 parent f3942c6 commit 1981fcc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/try-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test package for import errors and dependency installation
on:
push:
branches: [ main ]
jobs:
try-build:
name: Tries to build the package and import it
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install locally
run: python3 -m pip install .
- name: Test library import
run: cd / && python3 -c "from actual import Actual"

0 comments on commit 1981fcc

Please sign in to comment.