NickAkhmetov/CAT-977 Revise Collection DOI links to copy on click (#3… #3354
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: 🐍 Python CI | |
on: | |
push: | |
branches: [main] | |
pull_request: {} | |
jobs: | |
build: | |
# Available versions: | |
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: ".python-version" | |
architecture: "x64" | |
cache: "pip" | |
cache-dependency-path: "context/requirements*.txt" | |
- name: Install python main dependencies | |
run: PIP_CONSTRAINT=context/constraints.txt pip install -r context/requirements.txt --use-deprecated=legacy-resolver | |
- name: Install python dev dependencies | |
run: PIP_CONSTRAINT=context/constraints.txt pip install -r context/requirements-dev.txt --use-deprecated=legacy-resolver | |
- name: Run test script | |
run: etc/test/test-python.sh |