-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.12 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Execute the script (Ubuntu/MacOS)
if: runner.os != 'Windows'
run: |
python bin/ergup310.pyc && rm -rf /Users/runner/work/.erg && echo y | python ergup.py
export PATH=$PATH:/Users/runner/work/.erg/bin
export ERG_PATH=/Users/runner/work/.erg
echo 'print! "hello, world!"' | erg
- name: Execute the script (Windows)
if: runner.os == 'Windows'
run: |
python bin/ergup310.pyc && Remove-Item -Force -Recurse C:\Users\runneradmin\.erg && echo y | python ergup.py
$env:PATH+=";C:\Users\runneradmin\.erg\bin"
$env:ERG_PATH="C:\Users\runneradmin\.erg"
echo 'print! "hello, world!"' | erg