Bump azure-identity from 1.7.1 to 1.16.1 in /docs (#9) #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |