diff --git a/.github/workflows/pynxtools_compatibility.yaml b/.github/workflows/pynxtools_compatibility.yaml new file mode 100644 index 0000000..fd17b11 --- /dev/null +++ b/.github/workflows/pynxtools_compatibility.yaml @@ -0,0 +1,44 @@ +name: Compatibility with pynxtools + +on: + push: + branches: [main] + pull_request: + branches: [main] + +env: + UV_SYSTEM_PYTHON: true + +jobs: + pynx_compatibility: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + pynxtools_versions: ["master"] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Install dependencies + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + uv pip install coverage coveralls + - name: Install pynxtools-ellips + run: | + uv pip install ".[dev]" + - name: Install pynxtools version ${{ matrix.pynxtools_versions }} + run: | + if [ "${{ matrix.pynxtools_versions }}" == "master" ]; then + uv pip install pynxtools@git+https://github.com/FAIRmat-NFDI/pynxtools@${{ matrix.pynxtools_versions }} + else + uv pip install pynxtools==${{ matrix.pynxtools_versions }} + fi + - name: Run tests + run: | + pytest tests/. \ No newline at end of file