Skip to content

Swap to pdm

Swap to pdm #295

name: conda - Build Lint and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-lint-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
defaults:
run:
shell: bash -l {0}
env:
OORB_DATA: /tmp/oorb/data
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Get git tags
run: git fetch --prune --unshallow --tags
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: "thor"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install openorb dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y gfortran liblapack-dev
wget -P /tmp/ https://storage.googleapis.com/oorb-data/oorb_data.tar.gz
mkdir -p /tmp/oorb/
tar -xvf /tmp/oorb_data.tar.gz -C /tmp/oorb/
- name: Build and install
run: pip install .[dev]
- name: Lint
run: pdm lint
- name: Test
run: pdm test