Skip to content

Commit

Permalink
pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
siboehm committed Jan 15, 2024
1 parent 3f4ac4f commit aed2f7c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 34 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,34 @@ jobs:
- name: Integration test + devtest
run: |
./util/test_multiplayer.sh
- name: Setup mambaforge
pytest:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
source ./util/ci/common.sh
install_mambaforge
install_linux_deps clang-14 gdb
- name: Build
run: |
./util/ci/build.sh
env:
CC: clang-14
CXX: clang++-14

- uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.11'
mamba-version: "*"
channels: conda-forge,nodefaults
activate-environment: minetest
environment-file: environment.yml

- name: Run pytest
run: |
./util/ci/run_pytest.sh
pytest -v
# Build with prometheus-cpp (server-only)
clang_9_prometheus:
Expand Down
6 changes: 0 additions & 6 deletions doc/compiling/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ git clone --depth 1 https://github.com/minetest/minetest.git
cd minetest
```

Download Minetest's fork of Irrlicht:

```bash
git clone --depth 1 --branch "$(cat misc/irrlichtmt_tag.txt)" https://github.com/minetest/irrlicht.git lib/irrlichtmt
```

## Build

```bash
Expand Down
17 changes: 0 additions & 17 deletions util/ci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,3 @@ install_macos_deps() {
brew unlink $(brew ls --formula)
brew link "${pkgs[@]}"
}

install_mambaforge() {
# Download Mambaforge installer
wget -qO- https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh -O mambaforge.sh

# Install Mambaforge silently
bash mambaforge.sh -b -p $HOME/mambaforge

# Remove installer
rm mambaforge.sh

# Initialize Mambaforge
eval "$($HOME/mambaforge/bin/conda shell.bash hook)"

# Create minetest env
mamba env create
}
7 changes: 0 additions & 7 deletions util/ci/run_pytest.sh

This file was deleted.

0 comments on commit aed2f7c

Please sign in to comment.