Skip to content

fix(version): rename version (#172) #1231

fix(version): rename version (#172)

fix(version): rename version (#172) #1231

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Check imports sort order
uses: isort/isort-action@v1
with:
sort-paths: src, tests
configuration: --profile black --check-only --diff
requirements-files: "requirements.txt requirements-dev.txt"
- name: Check formatting
uses: psf/black@stable
with:
# Version of Black should match the versions set in `requirements-dev.txt`
version: "~=23.7.0"
options: --check --diff
- name: Check typing
run: |
python -m mypy
- name: Download Antares v9.3.2 release
run: |
echo "Downloading Antares v9.3.2..."
curl -L -f -o antares-9.3.2-Ubuntu-22.04.tar.gz \
https://github.com/AntaresSimulatorTeam/Antares_Simulator/releases/download/v9.3.2/antares-9.3.2-Ubuntu-22.04.tar.gz
if [ ! -f "antares-9.3.2-Ubuntu-22.04.tar.gz" ]; then
echo "Error: Download failed"
exit 1
fi
echo "Download successful. File size: $(ls -lh antares-9.3.2-Ubuntu-22.04.tar.gz | awk '{print $5}')"
- name: Extract Antares binaries
run: |
echo "Extracting archive..."
tar -xzf antares-9.3.2-Ubuntu-22.04.tar.gz
- name: Test
run: |
pytest --cov antarest --cov-report xml
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: python-code-coverage-report
path: coverage.xml
- name: Cleanup
if: always()
run: |
rm -f antares-9.3.2-Ubuntu-22.04.tar.gz
rm -rf antares-9.3.2-Ubuntu-22.04
echo "Cleanup completed"