Skip to content

Commit

Permalink
feat: Add github action to test this (#12)
Browse files Browse the repository at this point in the history
* feat: Add github action to test this

Signed-off-by: Eloy Coto <[email protected]>

* Update .github/workflows/build.yaml

Co-authored-by: Guillaume Desforges <[email protected]>

---------

Signed-off-by: Eloy Coto <[email protected]>
Co-authored-by: Guillaume Desforges <[email protected]>
  • Loading branch information
eloycoto and GuillaumeDesforges authored Apr 23, 2024
1 parent 2c7f9a8 commit f7f4b33
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check

on:
push:
branches:
- main
- master
- action
pull_request:
branches:
- main
- master

jobs:
check-numpy-import:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Nix
uses: cachix/install-nix-action@v22

- name: Install Python 3.11 with Nix
run: nix --extra-experimental-features nix-command --extra-experimental-features flakes run nixpkgs#python311 -- -m venv .venv --copies

- name: check that using it on numpy works
run: |
echo "Install numpy"
.venv/bin/pip install numpy
echo "Run fix-python"
./fix-python --venv .venv
echo "Check numpy works"
.venv/bin/python -c 'import numpy'

0 comments on commit f7f4b33

Please sign in to comment.