Skip to content

fix: failing pipeline #38

fix: failing pipeline

fix: failing pipeline #38

Workflow file for this run

name: GitHub Actions
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
# Checkout repo:
- uses: actions/checkout@v2
# Setup Python:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Install dependencies:
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install wheel
pip install .
# Pytest:
- name: Pytest
run: pytest -v --flake8
# Build new map + prepare for deployment:
- name: Build new map
if: ${{ matrix.python-version == '3.8' }}
run: |
python ./map_runs/map_runs.py
mkdir ./public
OUTPUT_PATH=$(awk -F '=' '{if (! ($0 ~ /^;/) && $0 ~ /output-path/) print $2}' ./map_runs/map-runs.ini | tr -d ' ')
cp ./{README.md,_config.yml,$OUTPUT_PATH} ./public
# Deploy to gh-pages:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ matrix.python-version == '3.8' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
enable_jekyll: true