notification-push-main #395
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: CI | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: [main] | |
repository_dispatch: | |
types: [notification-push-main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- uses: erg-lang/[email protected] | |
with: | |
build: 'nightly' | |
- name: Install erg_compiler module | |
run: | | |
pip install maturin | |
git clone https://github.com/erg-lang/erg | |
cd erg | |
echo "branch: '${{ github.event.client_payload.branch }}'" | |
if [ -z "${{ github.event.client_payload.branch }}" ]; then | |
git checkout main | |
else | |
git checkout ${{ github.event.client_payload.branch }} | |
fi | |
erg bump_version.er -- patch | |
cd crates/erg_compiler | |
maturin build --release --features pylib_compiler | |
cd ../../ | |
pip install $(ls target/wheels/*.whl) | |
cd ../ | |
- name: Test | |
run: | | |
poise test --pip-check |