forked from py4dstem/py4DSTEM
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request py4dstem#489 from alex-rakowski/ci-cd
CI/CD - Adding installation checkers
- Loading branch information
Showing
3 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Install Checker Dev | ||
on: | ||
push: | ||
branches: [ "dev" ] | ||
pull_request: | ||
branches: [ "dev" ] | ||
jobs: | ||
|
||
test-python-os-versions: | ||
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} on ${{ matrix.architecture }} | ||
continue-on-error: ${{ matrix.allow_failure }} | ||
runs-on: ${{ matrix.runs-on }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
allow_failure: [false] | ||
runs-on: [ubuntu-latest] | ||
architecture: [x86_64] | ||
python-version: ["3.10", "3.11",] | ||
# Currently no public runners available for this but this or arm64 should work next time | ||
# include: | ||
# - python-version: "3.10" | ||
# architecture: [aarch64] | ||
# runs-on: macos-latest | ||
# allow_failure: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install repo | ||
run: | | ||
python -m pip install . | ||
- name: Check installation | ||
run: | | ||
python -c "import py4DSTEM; print(py4DSTEM.__version__)" | ||
# - name: Check machine arch | ||
# run: | | ||
# python -c "import platform; print(platform.machine())" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Install Checker Main | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
jobs: | ||
|
||
test-python-os-versions: | ||
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} on ${{ matrix.architecture }} | ||
continue-on-error: ${{ matrix.allow_failure }} | ||
runs-on: ${{ matrix.runs-on }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
allow_failure: [false] | ||
runs-on: [ubuntu-latest, windows-latest, macos-latest] | ||
architecture: [x86_64] | ||
python-version: ["3.10", "3.11",] | ||
include: | ||
- python-version: "3.12.0-beta.4" | ||
runs-on: ubuntu-latest | ||
allow_failure: true | ||
# Currently no public runners available for this but this or arm64 should work next time | ||
# include: | ||
# - python-version: "3.10" | ||
# architecture: [aarch64] | ||
# runs-on: macos-latest | ||
# allow_failure: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install repo | ||
run: | | ||
python -m pip install . | ||
- name: Check installation | ||
run: | | ||
python -c "import py4DSTEM; print(py4DSTEM.__version__)" | ||
- name: Check machine arch | ||
run: | | ||
python -c "import platform; print(platform.machine())" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Install Checker Quick | ||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
- dev | ||
pull_request: | ||
branches-ignore: | ||
- main | ||
- dev | ||
jobs: | ||
|
||
test-python-os-versions: | ||
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} on ${{ matrix.architecture }} | ||
continue-on-error: ${{ matrix.allow_failure }} | ||
runs-on: ${{ matrix.runs-on }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
allow_failure: [false] | ||
runs-on: [ubuntu-latest] | ||
architecture: [x86_64] | ||
python-version: ["3.10"] | ||
# Currently no public runners available for this but this or arm64 should work next time | ||
# include: | ||
# - python-version: "3.10" | ||
# architecture: [aarch64] | ||
# runs-on: macos-latest | ||
# allow_failure: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install repo | ||
run: | | ||
python -m pip install . | ||
- name: Check installation | ||
run: | | ||
python -c "import py4DSTEM; print(py4DSTEM.__version__)" | ||
# - name: Check machine arch | ||
# run: | | ||
# python -c "import platform; print(platform.machine())" |