Skip to content

don't use numpy 2.0.0 (breaks build) #51

don't use numpy 2.0.0 (breaks build)

don't use numpy 2.0.0 (breaks build) #51

Workflow file for this run

name: Semantic Link Labs
on: [push]
permissions:
contents: write # This is required for actions/checkout@v1
security-events: write # To upload sarif files
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Get Date
id: get-date
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ steps.get-date.outputs.today }}-${{ hashFiles('environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: fabric
python-version: "3.10"
environment-file: environment.yml
channel-priority: strict
- name: Install package
shell: bash -el {0}
run: |
conda info
pip install -e .
# - name: Lint with flake8
# shell: bash -el {0}
# run: |
# flake8 sempy_labs tests --count --show-source --statistics
# continue-on-error: false
# - name: Lint with mypy
# shell: bash -el {0}
# run: |
# mypy sempy_labs tests
# continue-on-error: false
- name: Test with pytest
shell: bash -el {0}
run: |
pytest -s tests/