Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]

jobs:
lint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Lint with flake8
run: |
pip install flake8
flake8 python/alamode || true

test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install -r python/requirements.txt
pip install -e python
- name: Run tests
run: |
pytest -q

package:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- name: Package code
run: |
cd python
./package.sh
- name: Upload artifact
uses: actions/upload-artifact@v3.1.2
with:
name: alamode_python.zip
path: python/alamode_python.zip
Loading