Bump fonttools from 4.38.0 to 4.43.0 #379
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: Test and build | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: | |
- '3.10' | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macOS-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
python -m pip install -r dev-requirements.txt | |
- name: Install rust toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run cargo test | |
run: | | |
cargo test | |
working-directory: "stellarisdashboard/parsing/rust_parser" | |
- name: Build rust-parser | |
uses: PyO3/maturin-action@v1 | |
with: | |
command: build | |
args: --release -o target | |
working-directory: "stellarisdashboard/parsing/rust_parser" | |
- name: Install rust parser | |
run: | | |
pip install --find-links=stellarisdashboard/parsing/rust_parser/target rust-parser | |
- name: Tests | |
run: | | |
python -m pytest -m "not skip_github_actions" | |
- name: pyInstaller build | |
run: | | |
pyinstaller pyinstaller-package.spec | |
- name: pyInstaller run | |
run: | | |
dist/stellarisdashboard-build/parse_saves | |
# Zip the file, makes a zip containing a zip but fixes download problems due to too many small files | |
- name: package files (win) | |
if: matrix.os == 'windows-latest' | |
run: | | |
cd dist | |
[IO.Compression.ZipFile]::CreateFromDirectory( (Join-Path -Path (Get-Location) -ChildPath "stellarisdashboard-build"), (Join-Path -Path (Get-Location) -ChildPath "../stellarisdashboard-${{ matrix.os }}.zip"), 'Optimal', $false ) | |
cd .. | |
- name: package files | |
if: matrix.os != 'windows-latest' | |
run: | | |
base_dir=`pwd` | |
pushd dist/stellarisdashboard-build/ | |
zip -r $base_dir/stellarisdashboard-${{ matrix.os }}.zip * | |
popd | |
- name: Publish | |
uses: actions/upload-artifact@v3 | |
with: | |
name: stellarisdashboard-${{ matrix.os }}.zip | |
path: stellarisdashboard-${{ matrix.os }}.zip | |