From 1981fccf2d9ad9b379d84c6bdeae12800bfaf1be Mon Sep 17 00:00:00 2001 From: Brunno Vanelli Date: Mon, 15 Jul 2024 20:19:57 +0200 Subject: [PATCH] ci: add job to try and build and import package. (#41) Checks if module imports are working on the built version, to prevent future importer errors like #36 Closes #38 --- .github/workflows/try-build.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/try-build.yaml diff --git a/.github/workflows/try-build.yaml b/.github/workflows/try-build.yaml new file mode 100644 index 0000000..822f2ad --- /dev/null +++ b/.github/workflows/try-build.yaml @@ -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"