Skip to content
Draft
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
120 changes: 60 additions & 60 deletions .github/workflows/ase-tests.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
name: ASE integration

on:
push:
branches: [main]
pull_request:
# Check all PR

concurrency:
group: ase-tests-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
tests:
runs-on: ubuntu-24.04
name: tests
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: setup Python
uses: actions/setup-python@v6
with:
python-version: "3.13"

- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.10
with:
version: "v0.10.0"

- name: Setup sccache environnement variables
run: |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV

- name: install tests dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox coverage

- name: run tests
run: tox -e ase-tests
env:
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu

- name: combine Python coverage files
shell: bash
run: |
coverage combine .tox/*/.coverage
coverage xml

- name: upload to codecov.io
uses: codecov/codecov-action@v6
with:
fail_ci_if_error: true
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
# name: ASE integration

# on:
# push:
# branches: [main]
# pull_request:
# # Check all PR

# concurrency:
# group: ase-tests-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

# jobs:
# tests:
# runs-on: ubuntu-24.04
# name: tests
# steps:
# - uses: actions/checkout@v6
# with:
# fetch-depth: 0

# - name: setup Python
# uses: actions/setup-python@v6
# with:
# python-version: "3.13"

# - name: Setup sccache
# uses: mozilla-actions/sccache-action@v0.0.10
# with:
# version: "v0.10.0"

# - name: Setup sccache environnement variables
# run: |
# echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
# echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
# echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
# echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV

# - name: install tests dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install tox coverage

# - name: run tests
# run: tox -e ase-tests
# env:
# PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu

# - name: combine Python coverage files
# shell: bash
# run: |
# coverage combine .tox/*/.coverage
# coverage xml

# - name: upload to codecov.io
# uses: codecov/codecov-action@v6
# with:
# fail_ci_if_error: true
# files: coverage.xml
# token: ${{ secrets.CODECOV_TOKEN }}
Loading
Loading