Skip to content

Update rust.yml again #15

Update rust.yml again

Update rust.yml again #15

Workflow file for this run

name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
arch: x64
- os: ubuntu-22.04
arch: x64
- os: macos-latest
arch: arm64
- os: macos-14
arch: x64
- os: windows-latest
arch: x64
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then
pip install -r requirements.txt
else
echo "No requirements.txt found. Skipping dependency installation."
fi
shell: bash
- name: Run tests
run: python -m unittest discover
- name: Archive results
if: success()
run: |
tar -czf results.tar.gz ./*
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: test-results-${{ matrix.os }}-${{ matrix.arch }}
path: results.tar.gz