Skip to content

ci: replaced python_version matrix var with `python-version-file: p… #30

ci: replaced python_version matrix var with `python-version-file: p…

ci: replaced python_version matrix var with `python-version-file: p… #30

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "windows-latest", "macOS-latest"]
node_version: [16]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: pyproject.toml
cache: 'poetry'
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: Create virtualenv
shell: bash
run: |
python -m venv venv
- name: Install dependencies
shell: bash
run: |
pipx install poetry
source venv/bin/activate || source venv/Scripts/activate
poetry install
- name: Build visualization
shell: bash
run: |
npm install -g pug-cli browserify
cd visualization/ && npm install && make build
- name: Run tests
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
make test
- name: Package
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
make package
- name: Test package
shell: bash
run: |
dist/aw-watcher-input/aw-watcher-input --help
- name: Upload package
uses: actions/upload-artifact@v2
with:
name: aw-watcher-input-${{ runner.os }}
path: dist/aw-watcher-input