From a82e92409f25de9dea255f6b57e63e7fd1a40262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20De=20Keersmaeker?= <francois.dekeersmaeker@uclouvain.be> Date: Sun, 13 Oct 2024 14:37:22 +0200 Subject: [PATCH] CI: added workflow --- .github/workflows/install-test.yaml | 24 ------------------------ .gitlab-ci.yml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/install-test.yaml create mode 100644 .gitlab-ci.yml diff --git a/.github/workflows/install-test.yaml b/.github/workflows/install-test.yaml deleted file mode 100644 index d66376e..0000000 --- a/.github/workflows/install-test.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: install-test -on: [push] - -jobs: - - install-test: - runs-on: ubuntu-latest - steps: - - - name: Checkout repository and submodules - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Install dependencies - run: pip3 install -r $GITHUB_WORKSPACE/requirements.txt - - - name: Build and install package - run: | - python3 -m build - pip3 install $GITHUB_WORKSPACE - - - name: Run tests - run: python3 test/test.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6475b50 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +stages: + - test + + +test-job: + stage: test + script: + - python3 -m venv .venv # Create Python virtual environment + - source .venv/bin/activate # Activate Python virtual environment + - pip3 install -r requirements.txt # Install Python dependencies + - python3 test/test.py # Run tests + - pip3 install build # Install build package + - python3 -m build # Build package + - pip3 install . # Install package -- GitLab