Tag framework routes #208
Workflow file for this run
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: pr | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: false | |
jobs: | |
pr-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
jvm: ['21', '22', '23'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.jvm }} | |
cache: "sbt" | |
- uses: sbt/setup-sbt@v1 | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "8.3" | |
tools: composer:v2 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22.x' | |
- name: Delete `.rustup` directory | |
run: rm -rf /home/runner/.rustup # to save disk space | |
if: runner.os == 'Linux' | |
- name: Delete `.cargo` directory # to save disk space | |
run: rm -rf /home/runner/.cargo | |
if: runner.os == 'Linux' | |
- name: Install graphviz-dev | |
run: sudo apt install -y graphviz-dev | |
if: runner.os == 'Linux' | |
- name: Install graphviz-dev | |
run: | | |
brew install graphviz sbt | |
export C_INCLUDE_PATH="$(brew --prefix graphviz)/include/" | |
export LIBRARY_PATH="$(brew --prefix graphviz)/lib/" | |
pip install --use-pep517 --config-setting="--global-option=build_ext" pygraphviz | |
if: runner.os == 'macOS' | |
- name: Install and test | |
run: | | |
bash ./platform/frontends/php2atom/install.sh | |
npm install -g @appthreat/atom | |
python3 -m pip install --upgrade pip setuptools wheel | |
python3 -m pip install poetry | |
python3 -m poetry config virtualenvs.create false | |
python3 -m poetry install --no-cache | |
poetry run flake8 chenpy --count --select=E9,F63,F7,F82 --show-source --statistics | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.sbt | |
~/.coursier | |
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }} | |
- name: Compile and run tests | |
run: | | |
pip install rich | |
sbt clean +test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8 -Djna.library.path=${{ env.Python3_ROOT_DIR }}" | |
SCALAPY_PYTHON_LIBRARY: "python3.12" | |
if: runner.os != 'Windows' | |
- name: Compile and run tests | |
run: | | |
pip install rich | |
sbt clean +test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8 -Djna.library.path=${{ env.Python3_ROOT_DIR }}" | |
SCALAPY_PYTHON_LIBRARY: "python312" | |
if: runner.os == 'Windows' |