diff --git a/.github/workflows/install-test.yaml b/.github/workflows/install-test.yaml deleted file mode 100644 index d66376e1193522a4c426595e613e731b29c1f593..0000000000000000000000000000000000000000 --- 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 0000000000000000000000000000000000000000..6475b5048ce639eb83c20be3cb2efceb4f420b6c --- /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