Skip to content

Commit

Permalink
ci: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cathaypacific8747 committed Feb 4, 2025
1 parent 85d0989 commit 7bd63b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ jobs:
- name: Install the project
run: uv sync --all-extras --all-groups

- run: uv run mkdocs gh-deploy --force
31 changes: 15 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,24 @@ jobs:

- name: Style checking
run: |
uv run ruff check airtrafficsim tests
uv run ruff format --check airtrafficsim tests
- name: Type checking
run: uv run mypy airtrafficsim tests
uv run ruff check src tests
uv run ruff format --check src tests
- name: Type checking
run: uv run mypy src tests

# testing
- name: Download data from private repository
uses: actions/checkout@v3
with:
repository: HKUST-OCTAD-LAB/AirTrafficSim-data
ssh-key: ${{ secrets.SSH_KEY }}
path: AirTrafficSim-data
# - name: Download data from private repository
# uses: actions/checkout@v3
# with:
# repository: HKUST-OCTAD-LAB/AirTrafficSim-data
# ssh-key: ${{ secrets.SSH_KEY }}
# path: AirTrafficSim-data

- name: Unzip data
run: |
unzip -qq AirTrafficSim-data/BADA.zip -d airtrafficsim/data/performance/BADA
mv AirTrafficSim-data/.cdsapirc $HOME/
# - name: Unzip data
# run: |
# unzip -qq AirTrafficSim-data/BADA.zip -d airtrafficsim/data/performance/BADA
# mv AirTrafficSim-data/.cdsapirc $HOME/

- name: Run tests
run: |
Expand All @@ -69,4 +68,4 @@ jobs:
if: ${{ github.event_name != 'pull_request_target' }}
uses: codecov/codecov-action@v5
with:
env_vars: ${{ matrix.python-version }}
env_vars: ${{ matrix.python-version }}

0 comments on commit 7bd63b1

Please sign in to comment.